6ae0ca92283677687bd0a45253f8eec04648eff4
[ghc-hetmet.git] / ghc / compiler / tests / typecheck / should_succeed / tc060.hs
1 module ShouldSucceed where
2
3 class Eq2 a where
4  deq :: a -> a -> Bool
5
6 instance (Eq2 a) => Eq2 [a] where
7  deq (a:as) (b:bs) = if (deq a b) then (deq as bs) else False
8
9
10 instance Eq2 Int where
11  deq x y = True
12