Copyright | (c) 2021 Xy Ren |
---|---|
License | BSD3 |
Maintainer | xy.r@outlook.com |
Stability | experimental |
Portability | non-portable (GHC only) |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Effect
data Reader r :: Effect where Source #
An effect capable of providing an immutable environment r
that can be read. This roughly corresponds to the
MonadReader
typeclass and ReaderT
monad transformer in the mtl
library.
Operations
:: Reader r :> es | |
=> (r -> r) | The function that modifies the environment |
-> Eff es a | The computation to run with the modified environment |
-> Eff es a |
Modify the environment value temporarily for a computation.