Type Eq weirdness in Hashell

后端 未结 0 1420
暖寄归人
暖寄归人 2021-01-05 21:48

Learning how to write typeClasses in haskell

Wrote the following at first

data Trivial = ATrivial
instance Eq Trivial where 
  (==) trVal1 trVal2 = trV         


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