another minor fault in the Haskell Report

Simon Peyton-Jones simonpj@microsoft.com
Mon, 22 Jul 2002 15:46:44 +0100


Thanks.  Fixed.

Incidentally, the cement is set just about solid.  I've had no
substantive bug reports since the June release, so I'm on the
point of declaring the H98 Report finished.  I'm just waiting for
a few hours spare to do some cosmetics. =20

(This message is a genuine bug, but I'm not resetting the clock!)

Simon

| -----Original Message-----
| From: Malcolm Wallace [mailto:Malcolm.Wallace@cs.york.ac.uk]=20
| Sent: 17 July 2002 17:39
| To: haskell@haskell.org
| Subject: another minor fault in the Haskell Report
|=20
|=20
| I have just discovered another minor fault in the revised=20
| Haskell'98 Report.
|=20
| In the definition of the Standard Prelude, (page 115)
|=20
|     instance Read Float where
|         readsPrec p =3D readFloat
|     instance Read Double where
|         readsPrec p =3D readFloat
|=20
| are incorrect because they do not deal with a leading minus=20
| sign. The correct versions are:
|=20
|     instance Read Float where
|         readsPrec p =3D readSigned readFloat
|     instance Read Double where
|         readsPrec p =3D readSigned readFloat
|=20
| Funnily enough, all the implementations seem to have this fix=20
| already, it is just the Report that gets it wrong!
|=20
| Regards,
|     Malcolm
| _______________________________________________
| Haskell mailing list
| Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
|=20