Skip to content

compileToCoreModule: ghc: panic! (the 'impossible' happened)

The following code on GHCi

runGhc (Just "/home/mads/iabal/opt/ghc-6.10.4/lib/ghc-6.10.4/.") (compileToCoreModule "./foo.hs")

causes a GHC Panic

ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.4 for x86_64-unknown-linux):
        no package state yet: call GHC.setSessionDynFlags

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

foo.hs is attached.

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHC API
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information