@@ -100,11 +100,6 @@ module Streamly.Streams
100 , runZipStream -- deprecated
100 , runZipStream -- deprecated
101 , runZipAsync -- deprecated
101 , runZipAsync -- deprecated
106− , zipAsyncWith -- deprecated
108 -- * Fold Utilities
103 -- * Fold Utilities
109 , foldWith
104 , foldWith
110 , foldMapWith
105 , foldMapWith
@@ -121,7 +116,6 @@ import Control.Monad.Reader.Class (MonadReader(..))
121import Control.Monad.State.Class (MonadState(..))
116import Control.Monad.State.Class (MonadState(..))
122import Control.Monad.Trans.Class (MonadTrans (lift))
117import Control.Monad.Trans.Class (MonadTrans (lift))
123import Data.Semigroup (Semigroup(..))
118import Data.Semigroup (Semigroup(..))
124−import Prelude hiding (zipWith)
125import Streamly.Core ( MonadParallel
119import Streamly.Core ( MonadParallel
126 , SVar, SVarStyle(..)
120 , SVar, SVarStyle(..)
127 , SVarTag(..), SVarSched(..))
121 , SVarTag(..), SVarSched(..))
@@ -721,10 +715,6 @@ MONAD_COMMON_INSTANCES(ParallelT, MONADPARALLEL)
721-- Serially Zipping Streams
715-- Serially Zipping Streams
722------------------------------------------------------------------------------
716------------------------------------------------------------------------------
724−-- | Zip two streams serially using a pure zipping function.
725−zipWith :: IsStream t => (a -> b -> c) -> t m a -> t m b -> t m c
726−zipWith f m1 m2 = fromStream $ S.zipWith f (toStream m1) (toStream m2)
728-- | The applicative instance of 'ZipStreamM' zips a number of streams serially
718-- | The applicative instance of 'ZipStreamM' zips a number of streams serially
729-- i.e. it produces one element from each stream serially and then zips all
719-- i.e. it produces one element from each stream serially and then zips all
730-- those elements.
720-- those elements.
@@ -757,18 +747,6 @@ instance Monad m => Applicative (ZipStreamM m) where
757-- Parallely Zipping Streams
747-- Parallely Zipping Streams
758------------------------------------------------------------------------------
748------------------------------------------------------------------------------
760−-- | Zip two streams concurrently (i.e. both the elements being zipped are
761−-- generated concurrently) using a pure zipping function.
762−zipParallelWith :: (IsStream t, MonadParallel m)
763− => (a -> b -> c) -> t m a -> t m b -> t m c
764−zipParallelWith f m1 m2 =
765− fromStream $ S.zipParallelWith f (toStream m1) (toStream m2)
767−{-# DEPRECATED zipAsyncWith "Please use zipParallelWith instead." #-}
768−zipAsyncWith :: (IsStream t, MonadParallel m)
769− => (a -> b -> c) -> t m a -> t m b -> t m c
770−zipAsyncWith = zipParallelWith
772-- | Like 'ZipStreamM' but zips in parallel, it generates all the elements to
750-- | Like 'ZipStreamM' but zips in parallel, it generates all the elements to
773-- be zipped concurrently.
751-- be zipped concurrently.