Haskell type signature with multiple class constraints

后端 未结 0 1968
清歌不尽
清歌不尽 2021-02-11 19:25

How can I have multiple class constraints, so if A is an Eq and B is a Num, I could say either

f :: Eq a =&g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题