Skip to content

Bang pattern error message should suggest -XBangPatterns rather than -fbang-patterns

Prelude> let f (!x) = True
<interactive>:1:6: Illegal bang-pattern (use -fbang-patterns)

Since GHC is encouraging the use of -X options, shouldn't this suggest -XBangPatterns?

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