RE: different behaviour of ghc-4.02 and ghc-pre-4.03

1999-05-28 Thread Simon Peyton-Jones
- From: Michael Weber Sent: Friday, May 28, 1999 1:39 PM To: GHC Bug list Subject: different behaviour of ghc-4.02 and ghc-pre-4.03 Hi! Consider the following program: data Msg = Value Int | Inc deriving (Show, Read) main = do let v = read "Value 7"::Msg

different behaviour of ghc-4.02 and ghc-pre-4.03

1999-05-28 Thread Michael Weber
Hi! Consider the following program: data Msg = Value Int | Inc deriving (Show, Read) main = do let v = read "Value 7"::Msg print v When compiled with ghc-4.02, everything's fine, it outputs "Value 7" as expected. But compiled with ghc-pre-4.03 it yields this