@@ -270,6 +270,8 @@ foldbWith :: IsStream t
270foldbWith f = K.foldb f K.nil
270foldbWith f = K.foldb f K.nil
273+-- /Since: 0.7.0 ("Streamly.Prelude")/
273-- | A variant of 'Data.Foldable.fold' that allows you to fold a 'Foldable'
275-- | A variant of 'Data.Foldable.fold' that allows you to fold a 'Foldable'
274-- container of streams using the specified stream sum operation.
276-- container of streams using the specified stream sum operation.
@@ -281,14 +283,14 @@ foldbWith f = K.foldb f K.nil
281-- foldWith f = S.foldMapWith f id
283-- foldWith f = S.foldMapWith f id
284−-- /Since: 0.7.0 ("Streamly.Prelude")/
286-- /Since: 0.1.0 ("Streamly")/
286-- /Since: 0.1.0 ("Streamly")/
287{-# INLINABLE foldWith #-}
287{-# INLINABLE foldWith #-}
288foldWith :: (IsStream t, Foldable f)
288foldWith :: (IsStream t, Foldable f)
289 => (t m a -> t m a -> t m a) -> f (t m a) -> t m a
289 => (t m a -> t m a -> t m a) -> f (t m a) -> t m a
290foldWith f = Prelude.foldr f K.nil
290foldWith f = Prelude.foldr f K.nil
292+-- /Since: 0.7.0 ("Streamly.Prelude")/
292-- | A variant of 'foldMap' that allows you to map a monadic streaming action
294-- | A variant of 'foldMap' that allows you to map a monadic streaming action
293-- on a 'Foldable' container and then fold it using the specified stream merge
295-- on a 'Foldable' container and then fold it using the specified stream merge
294-- operation.
296-- operation.
@@ -301,14 +303,14 @@ foldWith f = Prelude.foldr f K.nil
301-- foldMapWith f g xs = S.concatMapWith f g (S.fromFoldable xs)
303-- foldMapWith f g xs = S.concatMapWith f g (S.fromFoldable xs)
304−-- /Since: 0.7.0 ("Streamly.Prelude")/
306-- /Since: 0.1.0 ("Streamly")/
306-- /Since: 0.1.0 ("Streamly")/
307{-# INLINABLE foldMapWith #-}
307{-# INLINABLE foldMapWith #-}
308foldMapWith :: (IsStream t, Foldable f)
308foldMapWith :: (IsStream t, Foldable f)
309 => (t m b -> t m b -> t m b) -> (a -> t m b) -> f a -> t m b
309 => (t m b -> t m b -> t m b) -> (a -> t m b) -> f a -> t m b
310foldMapWith f g = Prelude.foldr (f . g) K.nil
310foldMapWith f g = Prelude.foldr (f . g) K.nil
312+-- /Since: 0.7.0 ("Streamly.Prelude")/
312-- | Like 'foldMapWith' but with the last two arguments reversed i.e. the
314-- | Like 'foldMapWith' but with the last two arguments reversed i.e. the
313-- monadic streaming function is the last argument.
315-- monadic streaming function is the last argument.
@@ -318,8 +320,6 @@ foldMapWith f g = Prelude.foldr (f . g) K.nil
318-- forEachWith = flip S.foldMapWith
320-- forEachWith = flip S.foldMapWith
321−-- /Since: 0.7.0 ("Streamly.Prelude")/
323-- /Since: 0.1.0 ("Streamly")/
323-- /Since: 0.1.0 ("Streamly")/
324{-# INLINABLE forEachWith #-}
324{-# INLINABLE forEachWith #-}
325forEachWith :: (IsStream t, Foldable f)
325forEachWith :: (IsStream t, Foldable f)