
Hello Guys, I saw that GHC already has complete support for Unicode character classification. I tend to use it but I saw that currently GHC.Unicode exports only few of all classification routines. Is it intentional? Cheers, Krasimir

On Tue, Jan 17, 2006 at 10:33:51AM +0200, Krasimir Angelov wrote:
I saw that GHC already has complete support for Unicode character classification. I tend to use it but I saw that currently GHC.Unicode exports only few of all classification routines. Is it intentional?
It exports some functions used by Data.Char. You'd be better off using the Data.Char interface, which is also supported by Hugs, and provides classification using Unicode general categories. Much more could be added, though.

The problem is that I have to use 'generalCategory' function which
isn't exported. It returns the general category which tells me a lot
more about the character.
2006/1/17, Ross Paterson
On Tue, Jan 17, 2006 at 10:33:51AM +0200, Krasimir Angelov wrote:
I saw that GHC already has complete support for Unicode character classification. I tend to use it but I saw that currently GHC.Unicode exports only few of all classification routines. Is it intentional?
It exports some functions used by Data.Char. You'd be better off using the Data.Char interface, which is also supported by Hugs, and provides classification using Unicode general categories. Much more could be added, though.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Oh, Sorry! I didn't see it at first sight and I immediately went to
GHC.Unicode. In this case is the GHC.Unicode module still in use?
2006/1/17, Ross Paterson
On Tue, Jan 17, 2006 at 11:29:42AM +0200, Krasimir Angelov wrote:
The problem is that I have to use 'generalCategory' function which isn't exported. It returns the general category which tells me a lot more about the character.
But Data.Char does export generalCategory.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (2)
-
Krasimir Angelov
-
Ross Paterson