Suppose I have an enumerated type like
data MyType
= One
| Two
| Three
...
| Ten
and I would like to implement the Eq interface for it. I could do it as follows
Eq MyType where
One == One = True
Two == Two = True
...
Ten == Ten = True
_ == _ = False
but this looks tedious.
Is there a better and more coincise way to do this in Idris?