incorrect pragma syntax leeds to panic
When using a wrong pragma syntax like:
{-# LANGUAGE IncoherentInstances -#} {-# LANGUAGE OverlappingInstances #-} -- wrong pragma syntax! {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE MultiParamTypeClasses #-}
This leeds to the following ghc panic:
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.4 for x86_64-apple-darwin):
getOptions'.parseLanguage(1) went past eof token
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.4 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |