Bad error message when `!` is used without BangPatterns extension
For
f :: a -> a
f !x = x
ghc-HEAD gives
P.hs:22:1: error:
The type signature for ‘f’ lacks an accompanying binding
|
22 | f :: a -> a
| ^
Here ghc should suggest BangPatterns extension.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.5 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |