Skip to main content

Module reader_t

Module reader_t 

Source

Structs§

ReaderTF
ReaderT monad transformer: adds environment-passing to an inner monad.

Functions§

reader_t_ask
ReaderT ask: get the current environment.
reader_t_chain
ReaderT chain: sequence environment-passing computations.
reader_t_fmap
ReaderT fmap: apply a function to the result.
reader_t_local
ReaderT local: modify the environment for a sub-computation.
reader_t_pure
ReaderT pure: wrap a value, ignoring the environment.
reader_t_reader
ReaderT reader: create a computation from a function on the environment.
reader_t_run
ReaderT run: run the computation with an environment.