diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail056.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail056.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail056.hs b/testsuite/tests/typecheck/should_fail/tcfail056.hs new file mode 100644 index 0000000000..a8a1315be7 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail056.hs @@ -0,0 +1,11 @@ +module ShouldFail where + +data Foo = MkFoo Bool + +instance Eq Foo where + (MkFoo x) == (MkFoo y) = x == y + +instance Eq Foo where + -- forgot to type "Ord" above + (MkFoo x) <= (MkFoo y) = x <= y + |