Fix error message when variables in a static form are not in scope
If an identifier is out-of-scope but inside a static form (static f) then GHC says expression not closed, when really it should just say identifier out of scope.
t.hs:6:5: error:
Only identifiers of top-level bindings can appear in the body of the static form:
static f
but the following identifiers were found instead:
f
We just want:
t.hs:6:12: error: Not in scope: ‘f’
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 |