Skip to content

"impossible" failure while type checking

$ cat failure.hs

import Control.Monad.Trans.Class
oops :: () -> IO () -> IO ()
oops = lift . lift
main = return ()

$ ghc failure.hs

[1 of 1] Compiling Main             ( failure.hs, failure.o )

failure.hs:3:8:ghc: panic! (the 'impossible' happened)
  (GHC version 7.6.3 for i386-apple-darwin):
	kindFunResult ghc-prim:GHC.Prim.*{(w) tc 34d}

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (Type checker)
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