On 12 November 2004 16:21, Ross Paterson wrote:
> On Fri, Nov 12, 2004 at 07:14:17AM -0800, Simon Marlow wrote:
>> Modified files:
>> libraries/base/GHC Unicode.hs
>> Log:
>> Note Haskell 98 divergence in isAlpha.
>
> I was hoping you'd change it to remove the divergence, either by
> defining
>
> isAlpha c = isUpper c || isLower c
> or
> isUpper c = isAlpha c && not isLower c
>
> The most sensible meaning for isAlpha seems to be the Unicode Letter
> category, which falls between glibc's implementation of these two,
> though the second is closer. (isAlphaNum is not affected)
I thought (naively?) that glibc's implementation of iswalpha() would be
more correct than isUpper || isLower.
If you think that the H98 defn of isAlpha is more correct, then I'm
happy to go with that.
Cheers,
Simon
_______________________________________________
Cvs-libraries mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-libraries