Idris2/tests/idris2/reg044/Methods.idr
Edwin Brady d6370380e6 Missing interface methods now cause an error
This was always the intended behaviour, but until now not implemented!
This caught a couple of issues in contrib and a test.
2021-06-27 20:03:19 +01:00

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