Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Extend a monad with a read-only environment
Type
newtype ReaderT r m a Source #
A transformer with read-only r, inner monad m, return a
ReaderT (r -> m a) |
Runner
runReaderT :: ReaderT r m a -> r -> m a Source #
Unwrap a ReaderT
computation with an initial read-only value