[Haskell-cafe] MState: A consistent State monad for concurrent
dagit at codersbase.com
Fri Jul 2 14:05:52 EDT 2010
On Fri, Jul 2, 2010 at 9:21 AM, Nils Schweinsberg <ml at n-sch.de> wrote:
> I have been trying to use the State monad for concurrent applications and
> came up with a little library. 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.
> The library is also on github.com. Please let me know what you think of
> it and whether or not I should put it on hackage.
My thoughts on hackage:
* For Haskell, if it's not on Hackage it doesn't exist :)
* It's usually better to put it up on Hackage where someone will use it
and then keep refining it as needed.
In other words, don't be shy!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe