Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Reader i m a where
- ask :: forall i. forall r. Member (Reader i) r => Semantic r i
- asks :: Member (Reader i) r => (i -> j) -> Semantic r j
- local :: forall i a. forall r. Member (Reader i) r => (i -> i) -> Semantic r a -> Semantic r a
- runReader :: i -> Semantic (Reader i ': r) a -> Semantic r a
- runInputAsReader :: Semantic (Input i ': r) a -> Semantic (Reader i ': r) a
Effect
data Reader i m a where Source #
An effect corresponding to ReaderT
.
Instances
type DefiningModule Reader Source # | |
Defined in Polysemy.Reader |
Actions
local :: forall i a. forall r. Member (Reader i) r => (i -> i) -> Semantic r a -> Semantic r a Source #