Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
module Control.Monad.Trans.
MultiState The multi-valued version of mtl's State / StateT / MonadState
class MonadMultiGet a m =>
MonadMultiState a (m :: Type -> Type)multistate Control.Monad.Trans.MultiState No documentation available.
type
MultiState (x :: [Type]) = MultiStateT x Identitymultistate Control.Monad.Trans.MultiState A state monad parameterized by the list of types x of the state to carry. Similar to State s = StateT s Identity
newtype
MultiStateT (x :: [Type]) (m :: Type -> Type) amultistate Control.Monad.Trans.MultiState A State transformer monad patameterized by:
- x - The list of types constituting the state,
- m - The inner monad.
- '[] - The empty list,
- a ': b - A list where a is an arbitrary type and b is the rest list.
MultiStateT '[Int, Bool] :: (* -> *) -> (* -> *)
is a State wrapper containing the types [Int, Bool].MultiStateT :: StateT (HList x) m a -> MultiStateT (x :: [Type]) (m :: Type -> Type) amultistate Control.Monad.Trans.MultiState No documentation available.
-
multistate Control.Monad.Trans.MultiState No documentation available.
-
multistate Control.Monad.Trans.MultiState Map both the return value and the state of a computation using the given function.
-
multistate Control.Monad.Trans.MultiState No documentation available.
runMultiStateTA :: forall m (s :: [Type]) a . Monad m => HList s -> MultiStateT s m a -> m amultistate Control.Monad.Trans.MultiState No documentation available.
-
multistate Control.Monad.Trans.MultiState No documentation available.