| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Monad.Trans.MultiState.Class
Contents
Description
The multi-valued version of mtl's MonadState
Synopsis
- class Monad m => MonadMultiGet a m where
- class MonadMultiGet a m => MonadMultiState a m where
MonadMultiState class
class Monad m => MonadMultiGet a m where #
In contrast to MonadMultiReader, MonadMultiGet is defined for State too, so it corresponds to read-access of any kind.
Note however that for MultiRWS, only the values from the state part can
be accessed via MonadMultiGet, due to limitations of the design of
MultiRWS and of the type system. This is issue is resolved in the
MultiGST type.
Minimal complete definition
Instances
class MonadMultiGet a m => MonadMultiState a m where #
Minimal complete definition
Instances
| (MonadTrans t, Monad (t m), MonadMultiState a m) => MonadMultiState a (t m) # | |
Defined in Control.Monad.Trans.MultiState.Class | |
| (Monad m, ContainsType a c) => MonadMultiState a (MultiStateT c m) # | |
Defined in Control.Monad.Trans.MultiState.Strict Methods mSet :: a -> MultiStateT c m () # | |
| (Monad m, ContainsType a c) => MonadMultiState a (MultiStateT c m) # | |
Defined in Control.Monad.Trans.MultiState.Lazy Methods mSet :: a -> MultiStateT c m () # | |
| (Monad m, HListMContains SettableFlag a cts) => MonadMultiState a (MultiGSTT cts m) # | |
Defined in Control.Monad.Trans.MultiGST.Strict | |
| (Monad m, HListMContains SettableFlag a cts) => MonadMultiState a (MultiGSTT cts m) # | |
Defined in Control.Monad.Trans.MultiGST.Lazy | |
| (Monad m, ContainsType a s) => MonadMultiState a (MultiRWST r w s m) # | |
Defined in Control.Monad.Trans.MultiRWS.Strict | |
| (Monad m, ContainsType a s) => MonadMultiState a (MultiRWST r w s m) # | |
Defined in Control.Monad.Trans.MultiRWS.Lazy | |