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