Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Input i m a where
- input :: forall i. forall r. Member (Input i) r => Semantic r i
- runConstInput :: i -> Semantic (Input i ': r) a -> Semantic r a
- runListInput :: Typeable i => [i] -> Semantic (Input (Maybe i) ': r) a -> Semantic r a
- runMonadicInput :: Semantic r i -> Semantic (Input i ': r) a -> Semantic r a
Effect
data Input i m a where Source #
An effect which can provide input to an application. Useful for dealing with streaming input.
Instances
type DefiningModule (Input :: k1 -> k2 -> k1 -> Type) Source # | |
Defined in Polysemy.Input |
Actions
Interpretations
runConstInput :: i -> Semantic (Input i ': r) a -> Semantic r a Source #
Run an Input
effect by always giving back the same value.