[Haskell-cafe] request for co-development: improving Data.CharEncoding module

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri May 26 05:43:27 EDT 2006

Hello Haskell,

i plan to publish new version of Streams library on next week (see
http://haskell.org/haskellwiki/Library/Streams if you still don't know
about it :) ). one of it's current drawbacks is lack of support for
file encodings other than UTF-8 and Latin-1. if someone can work on
this support, it will widen usage area of the library

i attached to letter current version of this module. it uses monadic
approach to encoding and decoding: each encoder is just a function
that performs monadic PutChar action via calls to monadic PutByte
action, and decoder in the same fashion translates each call to
GetChar into calls to GetByte. this allows to use encoders in various
environments - for monadic i/o, string conversion and so on

this module requires two improvements - first, support for other UTF
encodings; second, raising an exception in situations when data can't
be encoded (such as char > '\255' for Latin-1) or decoded (bad UTF
bytes sequence). if you are going to work on this module, please write
about this here - to avoid overlapping of work

Best regards,
 Bulat                          mailto:Bulat.Ziganshin at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CharEncoding.hs
Type: application/octet-stream
Size: 3979 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20060526/32c9ecf8/CharEncoding-0001.obj

More information about the Haskell-Cafe mailing list