[Haskell-cafe] MState: A consistent State monad for concurrent applications

Jason Dagit 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:

> Hi,
>
> 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.
>
> 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.
>

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!

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100702/3a0c72b3/attachment.html


More information about the Haskell-Cafe mailing list