Misleading error message suggestion
Given a rank-2 type, such as:
id :: forall a . a -> a
id x = x
The compiler complains:
Uniplate.hs:3:15:
Illegal operator `.' in type `forall a . (a -> a)'
(Use -XTypeOperators to allow operators in types)
Of course, people using ``.'in a type signature are much more likely to be aiming for
Rank2Types` - so perhaps in this one type operator the suggestion should be towards rank-2 types.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |