[Haskell-cafe] ANNOUNCE: text 0.8.0.0, fast Unicode text support

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Wed Sep 1 02:44:10 EDT 2010


On 1 September 2010 16:27, David Virebayre <dav.vire+haskell at gmail.com> wrote:
> 2010/9/1 Tako Schotanus <tako at codejive.org>:
>> As a Haskell noob I'm curious about this statement, is there something
>> intrinsically wrong with String?
>
> String is just a linked list of Char which are unicode code points;
> which is probably not the optimal way to store text.
> For intensive use of text it takes too much memory, and/or it's not
> fast enough.
>
> Sometimes I'd love if I could program using String and the compiler
> would automatically convert that to Text, or Bytestrings, but of
> course it's wishful thinking.

Well, there's OverloadedStrings for String literals...

But the problem with automagic conversion would be one of encoding for
Bytestrings at least.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list