Safe Haskell | None |
---|---|
Language | Haskell2010 |
The Reader monad transformer.
This is useful to keep a non-modifiable value in a context
Synopsis
- class AMPMonad m => MonadReader m where
- type ReaderContext m
- ask :: m (ReaderContext m)
- data ReaderT r m a
- runReaderT :: ReaderT r m a -> r -> m a
MonadReader
class AMPMonad m => MonadReader m where Source #
type ReaderContext m Source #
ask :: m (ReaderContext m) Source #
Instances
AMPMonad m => MonadReader (ReaderT r m) Source # | |
Defined in Foundation.Monad.Reader type ReaderContext (ReaderT r m) :: Type Source # | |
MonadReader m => MonadReader (ExceptT e m) Source # | |
Defined in Foundation.Monad.Except type ReaderContext (ExceptT e m) :: Type Source # |
ReaderT
Reader Transformer
Instances
runReaderT :: ReaderT r m a -> r -> m a Source #