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

Nils Schweinsberg ml at n-sch.de
Fri Jul 2 22:11:36 EDT 2010

On 03.07.2010 03:27, Matthew Gruen wrote:
> Awesome. I needed something like that once, too, down to the same type
> signature for the fork function. Here's an instance from my code:
> instance MonadFork (ReaderT s IO) where
>      fork newT = ask>>= liftIO . forkIO . runReaderT newT

I've added this instance to the Forkable class and a few other instances 
to the MState (Fix, Reader, Writer, Cont and Error). I hope they're all 


More information about the Haskell-Cafe mailing list