相关疑难解决方法(0)

cannot match on polymorphic tuples with constraints

I'm relatively new to haskell so forgive me if this is really obvious.

Basically I have two Bool and based on them I want to choose the implementation of 3 different functions. In the case that both bools are equal (e.g. both True or both False) the functions should do nothing. Then there are different implementation if one or the other Bool is True.

These function involve constraints so for instance the first function has an Ord or Bounded constraint …

haskell

2
推荐指数
1
解决办法
173
查看次数

标签 统计

haskell ×1