Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Support for access to a read only value of a particular type.
Effect
data Reader r :: Effect Source #
Provide access to a strict (WHNF), thread local, read only value of type
r
.
Instances
type DispatchOf (Reader r) Source # | |
Defined in Effectful.Reader.Static | |
newtype StaticRep (Reader r) Source # | |
Defined in Effectful.Reader.Static |
Handlers
Run a Reader
effect with the given initial environment.
:: (r1 -> r2) | The function to modify the environment. |
-> Eff (Reader r2 : es) a | Computation to run in the modified environment. |
-> Eff (Reader r1 : es) a |
Execute a computation in a modified environment.
Since: 1.1.0.0