Module
Pipes.Util
- Package
- purescript-node-stream-pipes
- Repository
- cakekindel/purescript-node-stream-pipes
#intersperse Source
intersperse :: forall m a. MonadEffect m => a -> Pipe (Maybe a) (Maybe a) m Unit
Yields a separator value sep
between received values
toList $ (yield "a" *> yield "b" *> yield "c") >-> intersperse ","
-- "a" : "," : "b" : "," : "c" : Nil
#InvokeResult Source
data InvokeResult :: Type -> Type -> (Type -> Type) -> Type
data InvokeResult a b m
The result of a single step forward of a pipe.
Constructors
DidNotYield (Pipe a b m Unit)
Yielded ((NonEmptyList b) /\ (Pipe a b m Unit))
The pipe
await
ed the value, andyield
ed 1 or more responses.Exited
The pipe
await
ed the value, and exited.
#IntermediateInvokeResult Source
data IntermediateInvokeResult :: Type -> Type -> (Type -> Type) -> Type
data IntermediateInvokeResult a b m
Constructors
IDidNotYield (Pipe a b m Unit)
IYielded ((NonEmptyList b) /\ (Pipe a b m Unit))
IDidNotAwait (Pipe a b m Unit)
The pipe
await
ed the value, but did notyield
a response.