[Haskell-cafe] How to split this string.

Markus Läll markus.l2ll at gmail.com
Mon Jan 2 18:55:30 CET 2012

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 <ajnsit at gmail.com> wrote:
> On Mon, Jan 2, 2012 at 5:52 PM, Felipe Almeida Lessa
> <felipe.lessa at gmail.com> wrote:
>> On Mon, Jan 2, 2012 at 10:12 AM, max <mk at mtw.ru> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

Markus Läll

More information about the Haskell-Cafe mailing list