<div dir="ltr">Depending on what you&#39;re doing with the lines, it may be worth checking out the `interact` function as well :-)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 31, 2013 at 7:42 PM, Kim-Ee Yeoh <span dir="ltr">&lt;<a href="mailto:ky3@atamo.com" target="_blank">ky3@atamo.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sun, Mar 31, 2013 at 5:19 PM, Ovidiu D &lt;<a href="mailto:ovidiudeac@gmail.com">ovidiudeac@gmail.com</a>&gt; wrote:<br>


&gt; I would like to make this function to have the signature<br>
&gt; f : IO [String]<br>
&gt; ...such that I can get rid of the IO monad and pass the pure string list to<br>
&gt; the processing function.<br>
<br>
</div>You could use:<br>
<br>
getContents &gt;&gt;= lines :: IO [String]<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Kim-Ee<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div>