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