Trouble instancing Eq in my Relation data type

后端 未结 0 760
没有蜡笔的小新
没有蜡笔的小新 2021-01-24 20:42

I\'m stuck instancing the following:

data Rel a = R [(a,a)] deriving (Read, Show)

listaPares:: Rel a -> [(a,a)]
listaPares (R rel) = rel

instance Eq (Rel a)          


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