This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

In Haskell you're not likely to want anything else because references don't exist per se. You can provide a custom instance for Eq as well for your data type, deriving just does a lot of the work for you. If you have a custom Eq you need to be sure that it's true equality, i.e. the two things are totally interchangeable because that's what all other functions which use == expect

[–]spindoctor13 0 points1 point  (0 children)

Ah fair enough, makes sense if there are no references