| 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}
Ah yes, and that lexes wrong: the "=-" is one lexeme. Solution: put
spaces round the '=' sign. Will be fixed!
> > 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