@@ -30,7 +30,7 @@ import GHC.Generics (Generic)
31import qualified Streamly as S hiding (foldMapWith, runStream)
31import qualified Streamly as S hiding (foldMapWith, runStream)
32import qualified Streamly.Prelude as S
32import qualified Streamly.Prelude as S
33−import qualified Streamly.Pipe as Pipe
33+-- import qualified Streamly.Pipe as Pipe
35value, maxValue, value2 :: Int
35value, maxValue, value2 :: Int
36#ifdef LINEAR_ASYNC
36#ifdef LINEAR_ASYNC
@@ -370,14 +370,9 @@ scan, scanl1', map, fmap, mapMaybe, filterEven, filterAllOut,
370mapMaybeM, intersperse :: S.MonadAsync m => Int -> Stream m Int -> m ()
370mapMaybeM, intersperse :: S.MonadAsync m => Int -> Stream m Int -> m ()
372{-# INLINE mapM #-}
372{-# INLINE mapM #-}
373−{-# INLINE transformMapM #-}
374−{-# INLINE transformComposeMapM #-}
375−{-# INLINE transformTeeMapM #-}
376−{-# INLINE transformZipMapM #-}
377{-# INLINE map' #-}
373{-# INLINE map' #-}
378{-# INLINE fmap' #-}
374{-# INLINE fmap' #-}
379−mapM, map', transformMapM, transformComposeMapM, transformTeeMapM,
380− transformZipMapM :: (S.IsStream t, S.MonadAsync m)
375+mapM, map' :: (S.IsStream t, S.MonadAsync m)
381 => (t m Int -> S.SerialT m Int) -> Int -> t m Int -> m ()
376 => (t m Int -> S.SerialT m Int) -> Int -> t m Int -> m ()
383fmap' :: (S.IsStream t, S.MonadAsync m, P.Functor (t m))
378fmap' :: (S.IsStream t, S.MonadAsync m, P.Functor (t m))
@@ -395,6 +390,18 @@ map n = composeN n $ S.map (+1)
395map' t n = composeN' n $ t . S.map (+1)
390map' t n = composeN' n $ t . S.map (+1)
396mapM t n = composeN' n $ t . S.mapM return
391mapM t n = composeN' n $ t . S.mapM return
393+-- Temporarily commented these ops as they depend on the hidden
396+{-# INLINE transformMapM #-}
397+{-# INLINE transformComposeMapM #-}
398+{-# INLINE transformTeeMapM #-}
399+{-# INLINE transformZipMapM #-}
401+transformMapM, transformComposeMapM, transformTeeMapM,
402+ transformZipMapM :: (S.IsStream t, S.MonadAsync m)
403+ => (t m Int -> S.SerialT m Int) -> Int -> t m Int -> m ()
398transformMapM t n = composeN' n $ t . S.transform (Pipe.mapM return)
405transformMapM t n = composeN' n $ t . S.transform (Pipe.mapM return)
399transformComposeMapM t n = composeN' n $ t . S.transform
406transformComposeMapM t n = composeN' n $ t . S.transform
400 (Pipe.mapM (\x -> return (x + 1))
407 (Pipe.mapM (\x -> return (x + 1))
@@ -405,6 +412,7 @@ transformTeeMapM t n = composeN' n $ t . S.transform
405transformZipMapM t n = composeN' n $ t . S.transform
412transformZipMapM t n = composeN' n $ t . S.transform
406 (Pipe.zipWith (+) (Pipe.mapM (\x -> return (x + 1)))
413 (Pipe.zipWith (+) (Pipe.mapM (\x -> return (x + 1)))
407 (Pipe.mapM (\x -> return (x + 2))))
414 (Pipe.mapM (\x -> return (x + 2))))
409mapMaybe n = composeN n $ S.mapMaybe
417mapMaybe n = composeN n $ S.mapMaybe
410 (\x -> if Prelude.odd x then Nothing else Just x)
418 (\x -> if Prelude.odd x then Nothing else Just x)