@@ -270,6 +270,8 @@ foldbWith :: IsStream t
270270foldbWith f = K.foldb f K.nil
271271-}
272272
273+-- /Since: 0.7.0 ("Streamly.Prelude")/
274+--
273275-- | A variant of 'Data.Foldable.fold' that allows you to fold a 'Foldable'
274276-- container of streams using the specified stream sum operation.
275277--
@@ -281,14 +283,14 @@ foldbWith f = K.foldb f K.nil
281283-- foldWith f = S.foldMapWith f id
282284-- @
283285--
284−-- /Since: 0.7.0 ("Streamly.Prelude")/
285−--
286286-- /Since: 0.1.0 ("Streamly")/
287287{-# INLINABLE foldWith #-}
288288foldWith :: (IsStream t, Foldable f)
289289 => (t m a -> t m a -> t m a) -> f (t m a) -> t m a
290290foldWith f = Prelude.foldr f K.nil
291291
292+-- /Since: 0.7.0 ("Streamly.Prelude")/
293+--
292294-- | A variant of 'foldMap' that allows you to map a monadic streaming action
293295-- on a 'Foldable' container and then fold it using the specified stream merge
294296-- operation.
@@ -301,14 +303,14 @@ foldWith f = Prelude.foldr f K.nil
301303-- foldMapWith f g xs = S.concatMapWith f g (S.fromFoldable xs)
302304-- @
303305--
304−-- /Since: 0.7.0 ("Streamly.Prelude")/
305−--
306306-- /Since: 0.1.0 ("Streamly")/
307307{-# INLINABLE foldMapWith #-}
308308foldMapWith :: (IsStream t, Foldable f)
309309 => (t m b -> t m b -> t m b) -> (a -> t m b) -> f a -> t m b
310310foldMapWith f g = Prelude.foldr (f . g) K.nil
311311
312+-- /Since: 0.7.0 ("Streamly.Prelude")/
313+--
312314-- | Like 'foldMapWith' but with the last two arguments reversed i.e. the
313315-- monadic streaming function is the last argument.
314316--
@@ -318,8 +320,6 @@ foldMapWith f g = Prelude.foldr (f . g) K.nil
318320-- forEachWith = flip S.foldMapWith
319321-- @
320322--
321−-- /Since: 0.7.0 ("Streamly.Prelude")/
322−--
323323-- /Since: 0.1.0 ("Streamly")/
324324{-# INLINABLE forEachWith #-}
325325forEachWith :: (IsStream t, Foldable f)