<br><br><div class="gmail_quote">On Fri, Jul 2, 2010 at 9:21 AM, Nils Schweinsberg <span dir="ltr"><<a href="mailto:ml@n-sch.de">ml@n-sch.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I have been trying to use the State monad for concurrent applications and came up with a little library.[1] My "MState" uses an IORef to maintain the state between different threads. The library also offers a simple way to fork off new threads using its own "forkM" function. This function will asure that every thread in an "evalMState"/"execMState" call will be finished before the final result is returned.<br>
<br>
The library is also on github.com.[2] Please let me know what you think of it and whether or not I should put it on hackage.<br></blockquote><div><br></div><div>My thoughts on hackage:</div><div> * For Haskell, if it's not on Hackage it doesn't exist :)</div>
<div> * It's usually better to put it up on Hackage where someone will use it and then keep refining it as needed.</div><div><br></div><div>In other words, don't be shy!</div><div><br></div><div>Jason</div></div>