Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Polysemy.Input
- yieldInput :: Member (Input i) r => Stream (Of i) (Sem r) ()
- yieldRace :: Members '[Final IO, Input i1, Input i2] r => Stream (Of (Either i1 i2)) (Sem r) ()
- exhaust :: Member (Input i) r => Stream (Of i) (Sem r) a
- runInputViaStream :: Stream (Of i) (Sem r) () -> InterpreterFor (Input (Maybe i)) r
- runInputViaInfiniteStream :: forall i r. Stream (Of i) (Sem r) Void -> InterpreterFor (Input i) r
Underlying Effect
module Polysemy.Input
Actions
yieldRace :: Members '[Final IO, Input i1, Input i2] r => Stream (Of (Either i1 i2)) (Sem r) () Source #
Intepretations
runInputViaStream :: Stream (Of i) (Sem r) () -> InterpreterFor (Input (Maybe i)) r Source #
runInputViaInfiniteStream :: forall i r. Stream (Of i) (Sem r) Void -> InterpreterFor (Input i) r Source #