[Haskell-cafe] How to split this string.

Jonathan Frywater qubital at gmail.com
Tue Jan 3 22:14:26 CET 2012

If you're interested in learning parsec, RWH covered this topic in depth in
Chapter 16, Choices and Errors:

On Mon, Jan 2, 2012 at 3:44 AM, max <mk at mtw.ru> wrote:

> I want to write a function whose behavior is as follows:
> foo "string1\nstring2\r\nstring3\nstring4" = ["string1",
> "string2\r\nstring3", "string4"]
> Note the sequence "\r\n", which is ignored. How can I do this?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120103/071b7a4b/attachment.htm>

More information about the Haskell-Cafe mailing list