Skip to content

Commit

Permalink
Use foldMany1 in chunksOf instead of foldMany
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Feb 5, 2021
1 parent a41a7b5 commit a4de6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Streamly/Internal/Data/Stream/StreamD/Type.hs
Expand Up @@ -904,7 +904,7 @@ foldMany1 (Fold fstep initial extract) (Stream step state) =

{-# INLINE chunksOf #-}
chunksOf :: Monad m => Int -> Fold m a b -> Stream m a -> Stream m b
chunksOf n f = foldMany (FL.takeLE n f)
chunksOf n f = foldMany1 (FL.takeLE n f)

data GroupState2 s fs
= GroupStart2 s
Expand Down

0 comments on commit a4de6a7

Please sign in to comment.