> > When building hat with ghc-5.04 I got the following error:
>
> Thus, it would appear that the program (hat-trans) compiled with 5.04
> exhibits different behaviour from the same program compiled with 5.02.2.
> So I would guess that this is a bug in GHC, not in Hat.
Here are some more details on this bug in GHC. It is a fault in the
derived Show instance for named fields.
data Test = Test { field :: Int } deriving (Eq,Show,Read)
main = print (Test {field=(-1)})
in ghc-5.02.2:
Test{field=(-1)}
in ghc-5.04:
Test {field=-1}
And for the following program:
main = putStrLn $
if read (show (Test {field=(-1)})) == Test (-1)
then "works" else "not"
In ghc-5.02.2:
works
In ghc-5.04:
Fail: Prelude.read: no parse
Regards,
Malcolm
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs