Skip to content

Commit

Permalink
Document concatS
Browse files Browse the repository at this point in the history
  • Loading branch information
turion committed Dec 30, 2024
1 parent e5d0fba commit 71111a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions automaton/src/Data/Stream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ catMaybeS = catMaybes
This function lets a stream control the speed at which it produces data,
since it can decide to produce any amount of output at every step.
If the original stream outputs an empty list and the buffer is empty,
it is retried until it produces data.
-}
concatS :: (Monad m) => StreamT m [a] -> StreamT m a
concatS StreamT {state, step} =
Expand Down

0 comments on commit 71111a0

Please sign in to comment.