@@ -154,6 +154,7 @@ module Streamly.Internal.Data.Stream.IsStream.Expand
154 , iterateMapWith
154 , iterateMapWith
155 , iterateSmapMWith
155 , iterateSmapMWith
156 , iterateMapLeftsWith
156 , iterateMapLeftsWith
158 -- * Deprecated
159 -- * Deprecated
159 , concatUnfold
160 , concatUnfold
@@ -962,13 +963,6 @@ intercalateSuffix :: (IsStream t, Monad m)
962intercalateSuffix unf seed str = fromStreamD $ D.unfoldMany unf
963intercalateSuffix unf seed str = fromStreamD $ D.unfoldMany unf
963 $ D.intersperseSuffix (return seed) (toStreamD str)
964 $ D.intersperseSuffix (return seed) (toStreamD str)
966−{-# INLINE iterateUnfold #-}
967−iterateUnfold :: (IsStream t, MonadAsync m)
968− => Unfold m a a -> t m a -> t m a
969−iterateUnfold unf xs = undefined
972------------------------------------------------------------------------------
966------------------------------------------------------------------------------
973-- Combine N Streams - concatMap
967-- Combine N Streams - concatMap
974------------------------------------------------------------------------------
968------------------------------------------------------------------------------
@@ -1075,12 +1069,14 @@ iterateMapWith combine f = IsStream.concatMapWith combine go
1076 go x = fromPure x `combine` IsStream.concatMapWith combine go (f x)
1070 go x = fromPure x `combine` IsStream.concatMapWith combine go (f x)
1078−{-
1072+-- | Same as @iterateMapWith Stream.serial@ but more efficient due to stream
1079{-# INLINE iterateUnfold #-}
1076{-# INLINE iterateUnfold #-}
1080−iterateUnfold :: (IsStream t, MonadAsync m)
1077+iterateUnfold :: -- (IsStream t, MonadAsync m) =>
1081− => Unfold m a a -> t m a -> t m a
1078+ Unfold m a a -> t m a -> t m a
1082−iterateUnfold unf xs = undefined
1079+iterateUnfold = undefined
1085------------------------------------------------------------------------------
1081------------------------------------------------------------------------------
1086-- Flattening Graphs
1082-- Flattening Graphs