parse error way too late
On the attached file the compiler reports
typeerror.hs:29: parse error (possibly incorrect
indentation)
where line no 29 is the type signature of the second
function (lookup). I thought ghc was off by one line
and looked desperately at line 30 (which was stupid
since ghc's line numbers are only too far down, never
early). The solution is that I missed the equal sign in
the first function. I report this since I'm puzzled by
the fact that ghc got all the way down to the next type
signature before the parser found an error.
Axel.
Trac metadata
Trac field | Value |
---|---|
Version | 6.2.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | ResolvedNoReason |
Component | Compiler (Parser) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |