Safe Haskell | None |
---|---|
Language | Haskell2010 |
The Reader monad transformer.
This is useful to keep a non-modifiable value in a context
- class AMPMonad m => MonadReader m where
- type 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 #
AMPMonad m => MonadReader (ReaderT r m) Source # | |
MonadReader m => MonadReader (ExceptT e m) Source # | |
ReaderT
Reader Transformer
MonadTrans (ReaderT r) Source # | |
AMPMonad m => Monad (ReaderT r m) Source # | |
Functor m => Functor (ReaderT r m) Source # | |
Applicative m => Applicative (ReaderT r m) Source # | |
MonadIO m => MonadIO (ReaderT r m) Source # | |
MonadFailure m => MonadFailure (ReaderT r m) Source # | |
MonadBracket m => MonadBracket (ReaderT r m) Source # | |
MonadCatch m => MonadCatch (ReaderT r m) Source # | |
MonadThrow m => MonadThrow (ReaderT r m) Source # | |
AMPMonad m => MonadReader (ReaderT r m) Source # | |
type Failure (ReaderT r m) Source # | |
type ReaderContext (ReaderT r m) Source # | |
runReaderT :: ReaderT r m a -> r -> m a Source #