On 5/4/07, <b class="gmail_sendername">Phlex</b> &lt;<a href="mailto:Phlex@telenet.be">Phlex@telenet.be</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br><br>I&#39;m trying to learn haskell, so here&#39;s is my first newbie question.<br>I hope this list is appropriate for such help requests.<br><br>I&#39;m trying to write a function with the signature [IO Int] -&gt; IO [Int]
<br></blockquote></div><br>Control.Monad has a function (called &quot;sequence&quot;) that does this for you. In fact, &quot;sequence&quot; is a more generic solution since its signature is (<a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Control-Monad.html#t%3AMonad">
Monad</a> m =&gt; [m a] -&gt; m [a]).<br><br>As a newbie, I found it educational to peruse the various modules in &quot;<a href="http://haskell.org/ghc/docs/latest/html/libraries/">http://haskell.org/ghc/docs/latest/html/libraries/
</a>&quot;. Just start looking at modules that sound interesting and see what has already been defined. Some modules at first may be too advanced, but if you go back to them in a few days (weeks?), they&#39;ll start making more sense, too.
<br clear="all"><br>-- <br>Rich<br><br>AIM : rnezzy<br>ICQ : 174908475<br>Jabber: <a href="mailto:rich@neswold.homeunix.net">rich@neswold.homeunix.net</a>