Haskell Platform Proposal: add the 'text' library

Krasimir Angelov kr.angelov at gmail.com
Wed Sep 8 01:12:38 EDT 2010

2010/9/8 Bryan O'Sullivan <bos at serpentine.com>:
> I'm afraid not. The TextEncoding type ties encoding and decoding together,
> when in pure code you need just one or the other. The TextEncoding design is
> fine for read/write Handles, where you may need both, but it does not make
> sense for pure code, where the current API provided by text is more
> appropriate.

I don't see how this is related to purity. I can't believe that it is
not possible to design single coherent API suitable for both purposes.

More information about the Libraries mailing list