|     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!

Interestingly, investigating this turned up two bugs in the Haskell
Library
report, which I'll send to the Haskell list.

Thanks for finding this.

Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to