<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>this is nice, thanks! What if a and b are of different types? I
simplified my example to much..<br>
</p>
<br>
<div class="moz-cite-prefix">Am 19.05.16 um 15:22 schrieb Imants
Cekusins:<br>
</div>
<blockquote
cite="mid:CAP1qinZr16mhYih3VCmO_WH0_+Cgs7JMeBfTU5aO-FfXs=r3Cg@mail.gmail.com"
type="cite">
<div dir="ltr">if 'update' were changed to
<div>update :: [String] -> IO ()<br>
</div>
<div><br>
</div>
then you could do:
<div>​doIt :: IO ()</div>
<div>doIt = sequence [inputA,inputB] >>= update</div>
<div><br>
</div>
<div>is this better?</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>