blob: 6ae0ca92283677687bd0a45253f8eec04648eff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module ShouldSucceed where
class Eq2 a where
deq :: a -> a -> Bool
instance (Eq2 a) => Eq2 [a] where
deq (a:as) (b:bs) = if (deq a b) then (deq as bs) else False
instance Eq2 Int where
deq x y = True
|