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 correct.

Thanks!
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to