diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc054.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/tc054.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc054.hs b/testsuite/tests/typecheck/should_compile/tc054.hs new file mode 100644 index 0000000000..df9deb08aa --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/tc054.hs @@ -0,0 +1,16 @@ +module ShouldSucceed where + +class Eq' a where + doubleeq :: a -> a -> Bool + +class (Eq' a) => Ord' a where + lt :: a -> a -> Bool + +instance Eq' Int where + doubleeq x y = True + +instance Ord' Int where + lt x y = True + +f x y | lt x 1 = True + | otherwise = False |