[Haskell-cafe] What is MonadPlus good for?
tomasz.zielonka at gmail.com
Sun Feb 13 15:28:18 EST 2005
On Sun, Feb 13, 2005 at 08:06:36PM +0100, Remi Turk wrote:
> You might be interested in the recent STM monad then
> (Control.Concurrent.STM in GHC-6.4): `T' for Transactional.
> However, though it supports both MonadPlus and exceptions, it
> doesn't use MonadPlus for exceptions: It's used for
> blocking/retrying a thread/transaction.
And for non-deterministic choice.
BTW, I have an implementation of STM based entirely on old concurrency
primitives, which means that it will work in older GHC and probably in
other Haskell compilers. I am going to put it on my web site, when I get
Szukamy programisty C++ i Haskell'a: http://tinyurl.com/5mw4e
More information about the Haskell-Cafe