mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-27 13:43:28 +03:00
d6370380e6
This was always the intended behaviour, but until now not implemented! This caught a couple of issues in contrib and a test.
13 lines
168 B
Idris
13 lines
168 B
Idris
data Foo = A | B | C
|
|
|
|
Eq Foo where
|
|
A == A = True
|
|
B == B = True
|
|
C == C = True
|
|
_ == _ = False
|
|
|
|
Ord Foo where
|
|
A < B = True
|
|
B < C = True
|
|
_ < _ = False
|