Doesn&#39;t the function &quot;lines&quot; handle different line-endings?<br>(In the Prelude and in Data.List)<br><br>If not, doing this with parsec would be easy (yet maybe slightly overkill...)<br><br><br><div class="gmail_quote">

2012/1/2 max <span dir="ltr">&lt;<a href="mailto:mk@mtw.ru">mk@mtw.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I want to write a function whose behavior is as follows:<br>


<br>
foo &quot;string1\nstring2\r\nstring3\nstring4&quot; = [&quot;string1&quot;,<br>
&quot;string2\r\nstring3&quot;, &quot;string4&quot;]<br>
<br>
Note the sequence &quot;\r\n&quot;, which is ignored. How can I do this?<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br>