
String is really for small strings. Text is more efficent and also has
more functionality, including most, if not all, of the functions
defined for String.
On Mon, Jan 2, 2012 at 3:12 PM, Anupam Jain
On Mon, Jan 2, 2012 at 5:52 PM, Felipe Almeida Lessa
wrote: On Mon, Jan 2, 2012 at 10:12 AM, max
wrote: This is the simplest solution of the proposed, in my opinion. Thank you very much.
Better yet, don't use String and use Text. Then you just need T.splitOn "\r\n" [1].
That is actually the opposite of what the OP wants, however it's interesting that Text has a function like that and not the String functions in the standard library.
-- Anupam
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Markus Läll