Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Data.Char: isAlpha vs. isLetter (Joey Hess)
2. Re: Data.Char: isAlpha vs. isLetter (Stayvoid)
----------------------------------------------------------------------
Message: 1
Date: Tue, 11 Sep 2012 01:49:19 -0400
From: Joey Hess <[email protected]>
Subject: Re: [Haskell-beginners] Data.Char: isAlpha vs. isLetter
To: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
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-0001.pgp>
------------------------------
Message: 2
Date: Tue, 11 Sep 2012 09:52:05 +0400
From: Stayvoid <[email protected]>
Subject: Re: [Haskell-beginners] Data.Char: isAlpha vs. isLetter
To: beginners <[email protected]>
Message-ID:
<cak5fs_gqwj49hcmzn6g2skn5eo4rsh7fchmd8oyvadmjsbf...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
> Probably an alias for backward compatibility; isAlpha is C-style <ctype.h>
> stuff, which was ASCII only, whereas isLetter is Unicode style.
Both Haskell functions support non-ASCII chars.
Does it refute your assumption?
Thanks
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 51, Issue 15
*****************************************