Missing # from #-} elicits utterly opaque error
Consider this in Foo.hs
module Foo where
{-# LINE 1 "Baz.hs" -}
Notice the missing #
GHC 6.3 (HEAD, 30 Oct 2003) gives the message:
Baz.hs:0: lexical error
This is extremely opaque; after all, the error is in Foo.
And it would help to know the offending token.
Simon PJ
Trac metadata
| Trac field | Value |
|---|---|
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedWon'tFix |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |