Skip to content

bad type does bad things

If I create a type like this:

data Test a = T a
 deriving Show a

I get:

*Main> :l test.hs
Compiling Main             ( teste.hs, interpreted )
ghc-5.04.2: panic! (the `impossible' happened, GHC
version 5.04.2):
        nameModule a{-r1qo-}

Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
Trac metadata
Trac field Value
Version None
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component None
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