[Haskell-cafe] UTF-8 Strings and GHC

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu May 25 08:21:33 EDT 2006

Hello Duncan,

Thursday, May 25, 2006, 3:24:35 PM, you wrote:

> Sorry it's all rather unsatisfactory. The missing pieces here are
> allowing Unicode string literals and

ghc 6.5 support it

> an IO library that make decoding
> text files into normal Haskell Strings easy.

you can find [Word8]<->[Char] decoder for UTF-8. in particular,
http://freearc.narod.ru/Streams.tar.gz have one in the module

you can also find implementation of UTF-8 I/O in JHC sources
(CharIO module)

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list