#5478: GHC panics - Can't derive Show for primitive type ByteArray#
---------------------------------+------------------------------------------
    Reporter:  hvr               |       Owner:                    
        Type:  bug               |      Status:  new               
    Priority:  normal            |   Component:  Compiler          
     Version:  7.2.1             |    Keywords:                    
    Testcase:                    |   Blockedby:                    
          Os:  Unknown/Multiple  |    Blocking:                    
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash
---------------------------------+------------------------------------------
 The following Haskell

 {{{
 #!hs
 {-# 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
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5478>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to