Typo in error message about ScopedTypeVariables
When I compile this code:
silly :: [a] -> [a]
silly lst = case lst of
[] -> []
((h :: ty) : t) -> (h : t)
I get this error message:
Illegal type signature: `ty'
Perhaps you intended to use -XScopedTypeVariable
In a pattern type-signature
It seems this should be corrected to ScopedTypeVariable
s
Trac metadata
Trac field | Value |
---|---|
Version | 7.5 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |