String != [Char]

Tony Morris tonymorris at
Sat Mar 17 05:30:27 CET 2012

On 17/03/12 11:44, Greg Weber wrote:
> the text library and Text data type have shown the worth in real world
> Haskell usage with GHC.
> I try to avoid String whenever possible, but I still have to deal with
> conversions and other issues.
> There is a lot of real work to be done to convert away from [Char],
> but I think we need to take it out of the language definition as a
> first step.
> I can only see one issue with the proposal: it can be convenient to
> operate on a list of characters.
> But I think there are plenty of solutions at our disposal. A simple
> conversion from Text to a list of characters might suffice. In GHC,
> OverloadedStrings means users would still be free to use String the
> same way they are now.
> _______________________________________________
> Haskell-prime mailing list
> Haskell-prime at
Do you know if there is a good write-up of the benefits of Data.Text
over String? I'm aware of the advantages just by my own usage; hoping
someone has documented it rather than in our heads.

Tony Morris

More information about the Haskell-prime mailing list