
On 1 September 2010 16:27, David Virebayre
2010/9/1 Tako Schotanus
: 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@gmail.com IvanMiljenovic.wordpress.com