<div dir="ltr">Thanks!!<div><br></div><div>John.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 15, 2016 at 4:23 PM, Imants Cekusins <span dir="ltr"><<a href="mailto:imantc@gmail.com" target="_blank">imantc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><span style="font-family:monospace,monospace;font-size:14px">> f :: [input] -> state -> outputs</span><div><font face="monospace, monospace"><br></font></div></span>.. or with state monad m it could be a combination of<br><br>f :: [input] -> m outputs<br><br>f :: [input] -> outputs - for intermediate results where state is not R/W<div><br></div><div><br></div><div>state + IO is not too difficult. here is a <a href="http://stackoverflow.com/questions/3640120/combine-state-with-io-actions" target="_blank">very good explanation</a></div><div>I understood the last one - <span style="margin:0px;padding:0px;border:0px">Use liftIO<font color="#242729" face="arial, helvetica neue, helvetica, sans-serif"><span style="font-size:15px"> - </span></font></span>best</div></div>
<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>
<br></blockquote></div><br></div>