#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

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

Reply via email to