On Thu, Mar 08, 2012 at 12:37:31PM +0100, Yves Parès wrote:
> If you just need to go back and forth from String to Text, why do you need
> to be generic? pack and unpack from Data.Text do the job.

Always going through String or Text may (depending on what your
underlying representation is) be less efficient than converting directly
to String/Text.

Cheers,
Simon

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to