Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
multistate Control.Monad.Trans.MultiReader No documentation available.
class Monad m =>
MonadMultiReader a (m :: Type -> Type)multistate Control.Monad.Trans.MultiReader.Class All methods must be defined. The idea is: Any monad stack is instance of MonadMultiReader a, iff the stack contains a MultiReaderT x with a element of x.
class Monad m =>
MonadMultiReader a (m :: Type -> Type)multistate Control.Monad.Trans.MultiReader.Lazy All methods must be defined. The idea is: Any monad stack is instance of MonadMultiReader a, iff the stack contains a MultiReaderT x with a element of x.
type
MultiReader (x :: [Type]) = MultiReaderT x Identitymultistate Control.Monad.Trans.MultiReader.Lazy A reader monad parameterized by the list of types x of the environment / input to carry. Similar to Reader r = ReaderT r Identity
newtype
MultiReaderT (x :: [Type]) (m :: Type -> Type) amultistate Control.Monad.Trans.MultiReader.Lazy A Reader transformer monad patameterized by:
- x - The list of types constituting the environment / input (to be read),
- m - The inner monad.
- '[] - The empty list,
- a ': b - A list where a is an arbitrary type and b is the rest list.
MultiReaderT '[Int, Bool] :: (* -> *) -> (* -> *)
is a Reader transformer containing the types [Int, Bool].MultiReaderT :: StateT (HList x) m a -> MultiReaderT (x :: [Type]) (m :: Type -> Type) amultistate Control.Monad.Trans.MultiReader.Lazy No documentation available.
-
multistate Control.Monad.Trans.MultiReader.Lazy No documentation available.
-
multistate Control.Monad.Trans.MultiReader.Lazy Map both the return value and the environment of a computation using the given function. Note that there is a difference to mtl's ReaderT, where it is not possible to modify the environment.
runMultiReaderT :: forall m (r :: [Type]) a . Monad m => HList r -> MultiReaderT r m a -> m amultistate Control.Monad.Trans.MultiReader.Lazy No documentation available.
runMultiReaderTNil :: Monad m => MultiReaderT ('[] :: [Type]) m a -> m amultistate Control.Monad.Trans.MultiReader.Lazy No documentation available.