cvs commit: fptools/libraries/base/Data Char.hs
fptools/libraries /base/GHC Base.lhs Read.lhs Show.lhs Unicode.hsc
Date: Tue, 26 Aug 2003 12:24:23 +0100
Simon Marlow
simonmar@microsoft.com
=20
> ross 2003/08/26 03:39:57 PDT
>=20
> Modified files:
> libraries/base/Data Char.hs=20
> libraries/base/GHC Base.lhs Read.lhs Show.lhs Unicode.hsc=20
> Log:
> Document Data.Char from the H98 Report.
> =20
> Note that the new implementations of isSpace and isDigit=20
> are inconsistent
> with this documentation -- maybe two versions of them are needed?
Ah yes, I hadn't noticed that Char.isSpace only recognises Latin-1 space
characters. I wonder why that is?
I think you'll find that the current implementation of isDigit does only
recognise '0'..'9' (well, it depends on the OS, but the Linux locale
tables only recognise '0'..'9' as digits). There's a good example in
testsuite/tests/ghc-regress/lib/Char/unicode001.hs.
Cheers,
Simon