Suggest PatternSynonyms
If I try to compile a pattern type signature like
pattern P :: G Int
without having enabled PatternSynonyms then I get the error
Pat.hs:8:1:
Invalid type signature: pattern P :: G Int
Should be of form <variable> :: <type>
We could easily work out to suggest that the user enable PatternSynonyms here.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.10.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |