[GHC] #5041: Incorrect Read deriving for MagicHash constructors

GHC cvs-ghc at haskell.org
Wed Mar 23 16:28:14 CET 2011


#5041: Incorrect Read deriving for MagicHash constructors
---------------------------------+------------------------------------------
    Reporter:  dolio             |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.0.2             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by maeder):

 ghci needs to be called with "-XMagicHash" for "show A#" to work and read
 needs to know the result type. Yet:

 {{{
 *Main> read "A#" :: Note
 *** Exception: Prelude.read: no parse
 }}}

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



More information about the Glasgow-haskell-bugs mailing list