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