Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> writes: > Dimitry Golubovsky <[EMAIL PROTECTED]> writes:
[Proposal: ASCII.isDigit is true for '0'..'9', Unicode.isDigit is true for whatever Unicode defines as digits] >> So there might be a bunch of (perhaps autogenerated, from localedef >> files) modules for each locale/encoding, like ISO8859_1 or KOI_8. > I disagree. Char is supposed to mean Unicode only, and data is > converted to Unicode on boundaries with those parts of the world which > use different encodings. ...and uppercase chars in KOI_8 is a subset of uppercase chars in Unicode, so a KOI_8-specific isUpper would be superflous(?) My intention was only to separate between (the traditional) ASCII and (our modern day tower of Babel) Unicode. One possibility could be to have locale-modules apply to (raw) Word8 data -- so somebody writing for KOI_8 could avoid converting to UC Char at all. I'm not sure this is something we want, though. -kzm -- If I haven't seen further, it is by standing in the footprints of giants _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
