[Haskell-cafe] ANN: forkable-monad 0.1

Limestraël limestrael at gmail.com
Wed Apr 21 10:09:18 EDT 2010


Nice initiative!

By the way, since this is a monad, I think a better place than
Control.Concurrent.Forkable would be Control.Monad.Forkable.
It's just a suggestion.



> 2010/4/21 David Anderson <dave at natulte.net>
>
> Dear Haskellers,
>>
>> I'm happy, and only slightly intimidated, to announce the initial
>> release of forkable-monad.
>>
>> The short version is that forkable-monad exports a replacement forkIO
>> that lets you do this:
>>
>> type MyMonad = ReaderT Config (StateT Ctx IO)
>>
>> startThread :: MyMonad ThreadId
>> startThread = forkIO threadMain
>>
>> threadMain :: MyMonad ()
>> threadMain = forever $ liftIO $ putStrLn "Painless monad stack forking!"
>>
>> Note the lack of monad stack deconstruction and reconstruction to
>> transport it over to the new thread. You'll find the details in the
>> Haddock documentation for the module.
>>
>> forkable-monad is available:
>>
>> * On hackage: http://hackage.haskell.org/package/forkable-monad
>> * Via cabal: cabal install forkable-monad
>> * Source and issue tracker: http://code.google.com/p/forkable-monad/
>>
>> Feedback is of course welcome. As this is my first published Haskell
>> code and Hackage upload, I expect there will be quite a bit!
>>
>> - Dave
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100421/4ee8f55b/attachment.html


More information about the Haskell-Cafe mailing list