@@ -313,8 +313,8 @@ module Streamly.Prelude
315 , scanlM'
315 , scanlM'
316− -- , postscanl'
316+ , postscanl'
317− -- , postscanlM'
317+ , postscanlM'
318 -- , prescanl'
318 -- , prescanl'
319 -- , prescanlM'
319 -- , prescanlM'
320 , scanl1'
320 , scanl1'
@@ -1659,23 +1659,22 @@ scanlM' step begin m = fromStreamD $ D.scanlM' step begin $ toStreamD m
1659scanl' :: (IsStream t, Monad m) => (b -> a -> b) -> b -> t m a -> t m b
1659scanl' :: (IsStream t, Monad m) => (b -> a -> b) -> b -> t m a -> t m b
1660scanl' step z m = fromStreamS $ S.scanl' step z $ toStreamS m
1660scanl' step z m = fromStreamS $ S.scanl' step z $ toStreamS m
1662−-- XXX enable once the signature (monadic zero) change is settled
1663−-- | Like scanl' but does not stream the initial value of the accumulator.
1662+-- | Like 'scanl'' but does not stream the initial value of the accumulator.
1665−-- > postscanl' f z xs = S.drop 1 $ scanl' f z xs
1664+-- > postscanl' f z xs = S.drop 1 $ S.scanl' f z xs
1667−-- @since 0.6.0
1666+-- @since 0.7.0
1668−{-# INLINE _postscanl' #-}
1667+{-# INLINE postscanl' #-}
1669−_postscanl' :: (IsStream t, Monad m) => (b -> a -> b) -> b -> t m a -> t m b
1668+postscanl' :: (IsStream t, Monad m) => (b -> a -> b) -> b -> t m a -> t m b
1670−_postscanl' step z m = fromStreamD $ D.postscanl' step z $ toStreamD m
1669+postscanl' step z m = fromStreamD $ D.postscanl' step z $ toStreamD m
1672-- XXX this needs to be concurrent
1671-- XXX this needs to be concurrent
1673−-- | Like postscanl' but with a monadic step function.
1672+-- | Like 'postscanl'' but with a monadic step function.
1675−-- @since 0.6.0
1674+-- @since 0.7.0
1676−{-# INLINE _postscanlM' #-}
1675+{-# INLINE postscanlM' #-}
1677−_postscanlM' :: (IsStream t, Monad m) => (b -> a -> m b) -> b -> t m a -> t m b
1676+postscanlM' :: (IsStream t, Monad m) => (b -> a -> m b) -> b -> t m a -> t m b
1678−_postscanlM' step z m = fromStreamD $ D.postscanlM' step z $ toStreamD m
1677+postscanlM' step z m = fromStreamD $ D.postscanlM' step z $ toStreamD m
1680-- XXX prescanl does not sound very useful, enable only if there is a
1679-- XXX prescanl does not sound very useful, enable only if there is a
1681-- compelling use case.
1680-- compelling use case.