on master help sign in
Make minor changes to haddock comments
db6fd11Harendra Kumar
src/Streamly/Internal/Data/Fold/Type.hs+1−1
@@ -1408,7 +1408,7 @@ refoldMany1 (Refold sstep sinject sextract) (Fold cstep cinitial cextract) =
1408 Partial s -> cextract s
1408 Partial s -> cextract s
1409 Done b -> return b
1409 Done b -> return b
1410
1410
1411−-- | Extract the output of a fold and refold is using a 'Refold'.
1411+-- | Extract the output of a fold and refold it using a 'Refold'.
1412--
1412--
1413-- /Internal/
1413-- /Internal/
1414{-# INLINE refold #-}
1414{-# INLINE refold #-}
src/Streamly/Internal/Data/Stream/StreamD/Type.hs+3−2
@@ -947,9 +947,10 @@ foldMany (Fold fstep initial extract) (Stream step state) =
947chunksOf :: Monad m => Int -> Fold m a b -> Stream m a -> Stream m b
947chunksOf :: Monad m => Int -> Fold m a b -> Stream m a -> Stream m b
948chunksOf n f = foldMany (FL.take n f)
948chunksOf n f = foldMany (FL.take n f)
949
949
950−-- Keep the argument order consistent with consumeIterateM
950+-- Keep the argument order consistent with consumeIterateM.
951--
951--
952−-- | Like 'foldMany' but for the 'Refold' type.
952+-- | Like 'foldMany' but for the 'Refold' type. The supplied action is used as
953+-- the initial value for each refold.
953--
954--
954-- /Internal/
955-- /Internal/
955{-# INLINE_NORMAL refoldMany #-}
956{-# INLINE_NORMAL refoldMany #-}