[Haskell-beginners] Data.Char: isAlpha vs. isLetter
Joey Hess
joey at kitenet.net
Tue Sep 11 07:49:19 CEST 2012
Brandon Allbery wrote:
> Probably an alias for backward compatibility; isAlpha is C-style <ctype.h>
> stuff, which was ASCII only, whereas isLetter is Unicode style.
Prelude Data.Char> all (\c -> isLetter c == isAlpha c) [minBound..maxBound]
True
Whew! You had me worried my code had unicode bugs.
isAlpha == isLetter
--
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120911/ec32fa57/attachment.pgp>
More information about the Beginners
mailing list