Module Control.Monad.Trans.Reader

Summary of exported operations:

ask :: Monad a => ReaderT b a b  Deterministic 
asks :: Monad a => (b -> c) -> ReaderT b a c  Deterministic 
reader :: Monad a => (b -> c) -> ReaderT b a c  Deterministic 
withReaderT :: (a -> b) -> ReaderT b c d -> ReaderT a c d  Deterministic 
runReader :: ReaderT a Identity b -> a -> b  Deterministic 

Exported datatypes:


newtype ReaderT

Constructor:

  • ReaderT :: (a -> b c) -> ReaderT a b c

    Fields:

    • runReaderT :: (a -> b c)

Reader

Type synonym: Reader a = ReaderT a Identity


Exported operations:

ask :: Monad a => ReaderT b a b  Deterministic 

asks :: Monad a => (b -> c) -> ReaderT b a c  Deterministic 

reader :: Monad a => (b -> c) -> ReaderT b a c  Deterministic 

withReaderT :: (a -> b) -> ReaderT b c d -> ReaderT a c d  Deterministic 

runReader :: ReaderT a Identity b -> a -> b  Deterministic