Omitted # after LANGUAGE pragma causes panic
If the # in the closing #-} after a LANGUAGE pragma is omitted, GHC panics. For example, creating a file containing the single line:
{-# LANGUAGE TypeFamilies -}
and passing it to GHC or GHCi produces:
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.3 for i386-unknown-linux):
getOptions'.parseLanguage(1) went past eof token
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |