Skip to content

ghc: panic! (the 'impossible' happened)

Foo.hs:6:3:ghc: panic! (the 'impossible' happened)

(GHC version 7.6.3 for i386-unknown-linux):

kindFunResult ghc-prim:GHC.Prim.*{(w) tc 34d}

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

The source file has to contain, merely:

l :: m a -> t m a
l = undefined

f :: a -> f b
f = do
  x <- undefined
  l $ x undefined

main = return ()

This panic reproduces on at least: 7.6.1, 7.6.2, 7.6.3.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
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