[GHC] #4089: Empty Show instance + phantom type + GHCi = out of memory

GHC cvs-ghc at haskell.org
Sun May 23 01:51:50 EDT 2010


#4089: Empty Show instance + phantom type + GHCi = out of memory
-----------------------+----------------------------------------------------
    Reporter:  japple  |       Owner:            
        Type:  bug     |      Status:  new       
    Priority:  normal  |   Component:  GHCi      
     Version:  6.12.2  |    Keywords:            
          Os:  Linux   |    Testcase:            
Architecture:  x86     |     Failure:  GHCi crash
-----------------------+----------------------------------------------------
 {{{
 module ShowMemory where

 data M a = M

 instance Show a => Show (M a)
 }}}

 Load in GHCi, type "M" and then enter at the prompt.

 It kills all my memory. I have no .ghci

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


More information about the Glasgow-haskell-bugs mailing list