Problems building hat with ghc-5.04

Simon Peyton-Jones simonpj at microsoft.com
Tue Jul 23 08:49:35 EDT 2002


|     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



More information about the Glasgow-haskell-bugs mailing list