supply-next-0.0.1.2: Supply-chain interface for basic streaming
Safe HaskellSafe-Inferred
LanguageGHC2021

Next.Producer.State

Synopsis

State actions

null :: forall action item. Monad action => StateT (Producer action item) action Bool Source #

Test whether the state is an empty stream

head :: forall action item. Monad action => StateT (Producer action item) action (Step item) Source #

Peek at the first item in the stream state

push :: forall up action item. Monad action => item -> StateT (ProducerPlus up action item) action () Source #

Add an item to the front of the stream state

pop :: forall action item. Monad action => StateT (Producer action item) action (Step item) Source #

Take the first item from the stream