
16 Nov
2005
16 Nov
'05
5:45 p.m.
On Wed, Nov 16, 2005 at 11:51:19AM -0500, Kurt Hutchinson wrote:
I have to perform another runReaderT when forking? Or is there a way to get the ReaderT environment automatically carried over to the newly created Set B thread?
This is an unavoidable pain as far as I know. It would be nice if forkIO were defined in terms of MonadIO: forkIO :: MonadIO m => m () -> m ThreadId (Same with forkProcess.) I haven't thought too hard about it, but it seems that it should be possible. Andrew