Incorrect Read deriving for MagicHash constructors
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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |