[Haskell-cafe] How to split this string.

Anupam Jain ajnsit at gmail.com
Mon Jan 2 14:12:33 CET 2012


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



More information about the Haskell-Cafe mailing list