1 -- !!! tcfail044: duplicated type variable in instance decls
3 module ShouldFail where
5 instance (Eq a) => Eq (a->a)
8 instance (Num a) => Num (a->a) where
9 f + g = \x -> f x + g x
10 negate f = \x -> - (f x)
11 f * g = \x -> f x * g x
12 fromInteger n = \x -> fromInteger n
22 --main = putStr ((show (tt 0.4))++ " "++(show (tt 1.652)))