Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Monad m => MonadMVar m where Source #
newEmptyMVar :: m (MVar m a) Source #
See newEmptyMVar
.
takeMVar :: MVar m a -> m a Source #
See takeMVar
.
putMVar :: MVar m a -> a -> m () Source #
See putMVar
.
tryTakeMVar :: MVar m a -> m (Maybe a) Source #
See tryTakeMVar
.
tryPutMVar :: MVar m a -> a -> m Bool Source #
See tryPutMVar
.
isEmptyMVar :: MVar m a -> m Bool Source #
See isEmptyMVar
.
newMVar :: a -> m (MVar m a) Source #
See newMVar
.
readMVar :: MVar m a -> m a Source #
See readMVar
.
tryReadMVar :: MVar m a -> m (Maybe a) Source #
See tryReadMVar
.
swapMVar :: MVar m a -> a -> m a Source #
See swapMVar
.
withMVar :: MVar m a -> (a -> m b) -> m b Source #
See withMVar
.
withMVarMasked :: MVar m a -> (a -> m b) -> m b Source #
See withMVarMasked
.
default withMVarMasked :: MonadMask m => MVar m a -> (a -> m b) -> m b Source #
modifyMVar_ :: MVar m a -> (a -> m a) -> m () Source #
See modifyMVar_
.
default modifyMVar_ :: MonadMask m => MVar m a -> (a -> m a) -> m () Source #
modifyMVar :: MVar m a -> (a -> m (a, b)) -> m b Source #
See modifyMVar
.
default modifyMVar :: (MonadMask m, MonadEvaluate m) => MVar m a -> (a -> m (a, b)) -> m b Source #
modifyMVarMasked_ :: MVar m a -> (a -> m a) -> m () Source #
See modifyMVarMasked_
.
default modifyMVarMasked_ :: MonadMask m => MVar m a -> (a -> m a) -> m () Source #
modifyMVarMasked :: MVar m a -> (a -> m (a, b)) -> m b Source #
See modifyMVarMasked
.
default modifyMVarMasked :: (MonadMask m, MonadEvaluate m) => MVar m a -> (a -> m (a, b)) -> m b Source #