
4 Sep
2017
4 Sep
'17
12:09 p.m.
Hi,
Use sequence. It has type t (m a) -> m (t a) where m is a Monad (like
IO) and t is a Traversable (like the list).
Documentation: http://hackage.haskell.org/package/base-4.10.0.0/docs/Prelude.html#v:sequenc...
I got to it using Hoogle:
https://www.haskell.org/hoogle/?hoogle=%5BIO+a%5D+-%3E+IO+%5Ba%5D
On Mon, Sep 4, 2017 at 9:04 AM,
What is the way to transform a list of [IO XXX] type to [XXX]?
Thanks, Alexei _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-- Mihai Maruseac (MM) "If you can't solve a problem, then there's an easier problem you can solve: find it." -- George Polya