
3 Jul
2010
3 Jul
'10
2:11 a.m.
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!