<div dir="ltr"><div><div>splitOn "," <$> readFile "data.txt"<br><br></div>or perhaps<br><br></div>readFile "data.txt" >>= return . splitOn ","<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 11, 2017 at 3:56 PM, mike h <span dir="ltr"><<a href="mailto:mike_k_houghton@yahoo.co.uk" target="_blank">mike_k_houghton@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have<br>
<br>
 input <- readFile “data.txt”<br>
 let  input’ = splitOn “,” input<br>
….<br>
<br>
How do I make that into just one line?<br>
<br>
Thanks<br>
<br>
Mike<br>
______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>