[Haskell-cafe] How to split this string.
Felipe Almeida Lessa
felipe.lessa at gmail.com
Mon Jan 2 13:22:45 CET 2012
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].
Cheers,
[1] http://hackage.haskell.org/packages/archive/text/0.11.1.12/doc/html/Data-Text.html#v:splitOn
--
Felipe.
More information about the Haskell-Cafe
mailing list