Skip to content

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 ScopedTypeVariables

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information