-
+
tcfail032.hs:14:
- A type signature is more polymorphic than the inferred type
- Can't for-all the type variable(s) `a'
- in the type `a -> Int'
+ Inferred type is less polymorphic than expected
+ Quantified type variable `a' escapes
+ It is mentioned in the environment
+ The following variables in the environment mention `a'
+ x :: a -> Int
+ Signature type: forall a. (Eq a) => a -> Int
+ Type to generalise: a -> Int
+ When checking an expression type signature
In an expression with a type signature:
- x :: _forall_ [a] (PrelBase.Eq a) => a -> Int
-
-
-Compilation had errors
+ x :: forall a. (Eq a) => a -> Int