Stability | experimental |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A typeclass for monads which can execute STM
actions. (This is essentially
a copy of Control.Monad.IO.Class, modified for the STM
monad.)
Documentation
class Monad m => MonadSTM m where Source #
Analogous to MonadIO
. It allows one to use
when liftSTM
STM
is at
the "bottom" of the monad transformer stack.
Instances
MonadSTM STM Source # | |
MonadSTM m => MonadSTM (MaybeT m) Source # | |
MonadSTM m => MonadSTM (ListT m) Source # | |
(Monoid w, MonadSTM m) => MonadSTM (WriterT w m) Source # | |
(Monoid w, MonadSTM m) => MonadSTM (AccumT w m) Source # | |
(Monoid w, MonadSTM m) => MonadSTM (WriterT w m) Source # | |
(Monoid w, MonadSTM m) => MonadSTM (WriterT w m) Source # | |
MonadSTM m => MonadSTM (StateT s m) Source # | |
MonadSTM m => MonadSTM (StateT s m) Source # | |
MonadSTM m => MonadSTM (SelectT r m) Source # | |
MonadSTM m => MonadSTM (ReaderT r m) Source # | |
MonadSTM m => MonadSTM (IdentityT m) Source # | |
MonadSTM m => MonadSTM (ExceptT e m) Source # | |
(Error e, MonadSTM m) => MonadSTM (ErrorT e m) Source # | |
MonadSTM m => MonadSTM (ContT r m) Source # | |
(Monoid w, MonadSTM m) => MonadSTM (RWST r w s m) Source # | |
(Monoid w, MonadSTM m) => MonadSTM (RWST r w s m) Source # | |
(Monoid w, MonadSTM m) => MonadSTM (RWST r w s m) Source # | |