#5041: Incorrect Read deriving for MagicHash constructors
----------------------------------------+-----------------------------------
  Reporter:  dolio                      |          Owner:                  
      Type:  bug                        |         Status:  new             
  Priority:  normal                     |      Milestone:  7.2.1           
 Component:  Compiler                   |        Version:  7.0.2           
Resolution:                             |       Keywords:                  
  Testcase:  deriving/should_run/T5041  |      Blockedby:                  
Difficulty:                             |             Os:  Unknown/Multiple
  Blocking:                             |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown               |  
----------------------------------------+-----------------------------------
Changes (by igloo):

  * status:  closed => new
  * resolution:  fixed =>


Comment:

 This doesn't look right to me:

 {{{
 {-# LANGUAGE MagicHash #-}

 data Foo = Foo#
     deriving (Show, Read)

 foo :: Foo
 foo = read "Foo #" -- NOTE: Space between "Foo" and "#"

 main :: IO ()
 main = print foo
 }}}

 {{{
 $ ./q
 Foo#
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5041#comment:8>
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