#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
---------------------------------+------------------------------------------
Greetings,
A fellow in #haskell on freenode just discovered the following bug:
{{{
{-# LANGUAGE MagicHash #-}
data Note = A# deriving (Show, Read)
}}}
show works fine, but read doesn't:
{{{
*Main> show A#
"A#"
*Main> read (show A#)
*** Exception: Prelude.read: no parse
}}}
Probably not a surprising omission, and hopefully not difficult to fix.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5041>
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