GHC panics when asked to derive Show for ByteArray#
The following Haskell
{-# LANGUAGE MagicHash #-}
import GHC.Exts
data Foo = Foo0 ByteArray#
deriving Show
main = return ()
caused GHC to panic with
[1 of 1] Compiling Main ( ticket_5478.hs, ticket_5478.o )
ghc: panic! (the 'impossible' happened)
(GHC version 7.2.1 for x86_64-unknown-linux):
Error in deriving:
Can't derive Show for primitive type ghc-prim:GHC.Prim.ByteArray#{(w) tc 3f}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 7.2.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |