Fix a bug in foldMany1

Jump to correct state on Skip.
This commit is contained in:
Harendra Kumar 2021-02-05 18:46:45 +05:30
parent ccbaa15147
commit 01e5e5179e

View File

@ -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