[Haskell-beginners] IO question

David McBride toad3k at gmail.com
Mon Dec 11 21:00:02 UTC 2017


splitOn "," <$> readFile "data.txt"

or perhaps

readFile "data.txt" >>= return . splitOn ","

On Mon, Dec 11, 2017 at 3:56 PM, mike h <mike_k_houghton at yahoo.co.uk> wrote:

> I have
>
>  input <- readFile “data.txt”
>  let  input’ = splitOn “,” input
> ….
>
> How do I make that into just one line?
>
> Thanks
>
> Mike
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20171211/42675d3e/attachment.html>


More information about the Beginners mailing list