GHC panics if closing #-} for a LANGUAGE pragma is not on the same line
This came up on #haskell:
{-#
LANGUAGE ExistentialQuantification
#-}
main = undefined
This sends ghc-6.10.3 into a tailspin:
$ ghc --make foo.hs
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.3 for x86_64-unknown-linux):
getOptions'.parseLanguage(1) went past eof token
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Moving the #-} onto the LANGUAGE line fixes this.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Parser) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |