New instance declaration for Show for a new data

后端 未结 0 907
星月不相逢
星月不相逢 2020-12-11 07:59

I´m trying to add an instance declaration in Haskell unsuccessfully. Here what I\'ve tried so far


Instance Show MyBool where
show (BTrue) = #t
show (BFalse)          


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