Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Reader i m a where
- ask :: forall i. forall r. Member (Reader i) r => Sem r i
- asks :: Member (Reader i) r => (i -> j) -> Sem r j
- local :: forall i a. forall r. Member (Reader i) r => (i -> i) -> Sem r a -> Sem r a
- runReader :: i -> Sem (Reader i ': r) a -> Sem r a
- runInputAsReader :: Member (Reader i) r => Sem (Input i ': r) a -> Sem 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
Interpretations
runReader :: i -> Sem (Reader i ': r) a -> Sem r a Source #
Run a Reader
effect with a constant value.