28 May
2002
28 May
'02
4:57 p.m.
Folks I'm back to tidying up the Haskell Report. In the Numeric library, there is the useful function readFloat :: RealFloat a => ReadS a But you can't use it for reading rationals, because Rational isn't in RealFloat! This is a Royal Pain, and entirely unnecessary. In fact, readFloat uses only operations from the RealFrac class, so it could equally well have type readFloat :: RealFrac a => ReadS a I'm strongly inclined to make this change. It breaks no programs, and it fixes a real bug i.e. there is no way to read a "103" as a Rational. Simon
8858
Age (days ago)
8858
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Peyton-Jones