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