Confusing error message with TypeApplications already enabled
I have {-# LANGUAGE TypeApplications #-} in my file, and accidentally wrote a typo: myFunction@a (missing space, intended was myFunction @a).
GHC 8.0.2 outputs:
Pattern syntax in expression context: myFunction@a
Did you mean to enable TypeApplications?
I already have TypeApplications on, why does GHC suggest this?
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | nh2 |
| Operating system | |
| Architecture |