Reader
Types
Type Classes
Methods
askM :: m r
localM :: (r -> r) -> (m a) -> m a
readerM :: (r -> a) -> m a
Class for monads with a readable environment.
Functions
O(1). Execute a Reader with a modified environment.
Map the inner computation.
Transform the environment.
O(1). Retrieve the entire environment.
O(1). Execute a computation with a modified environment.
O(1). Retrieve a function of the environment.
O(1). Embed a simple reader action into the monad.