Confusing parse error when forgetting "deriving"
This code:
module Main where
data Foo
= Foo
{ f_x :: Int
, f_y :: Int
} (Eq, Show)
Produces this error message:
foo.hs:5:7: Not in scope: `f_x'
foo.hs:6:7: Not in scope: `f_y'
I'm not sure how easy it is to improve the error message; but a "Not in scope" seems very confusing to me...
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |