mirror of
https://github.com/composewell/streamly.git
synced 2024-09-17 14:37:27 +03:00
Fix a bug in foldMany1
Jump to correct state on Skip.
This commit is contained in:
parent
ccbaa15147
commit
01e5e5179e
@ -890,7 +890,7 @@ foldMany1 (Fold fstep initial extract) (Stream step state) =
|
||||
r <- step (adaptState gst) st
|
||||
case r of
|
||||
Yield x s -> consume x s fs
|
||||
Skip s -> return $ Skip (FoldMany1Start s)
|
||||
Skip s -> return $ Skip (FoldMany1First fs s)
|
||||
Stop -> return Stop
|
||||
step' gst (FoldMany1Loop st fs) = do
|
||||
r <- step (adaptState gst) st
|
||||
|
Loading…
Reference in New Issue
Block a user