Parser error on {-# LANGUAGE - #-}
Create a single-line file x.hs with contents
{-# LANGUAGE -FlexibleInstances #-}
And run ghci x.hs.
GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. ghc: panic! (the 'impossible' happened)
(GHC version 6.10.4 for i386-unknown-linux):
getOptions'.parseLanguage(2) went past eof token
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
If the dash is removed, {-# LANGUAGE FlexibleInstances #-} the file parses properly.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Parser) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by Krzysztof Gogolewski