@@ -313,8 +313,8 @@ module Streamly.Prelude
313313
314314 , scanl'
315315 , scanlM'
316− -- , postscanl'
317− -- , postscanlM'
316+ , postscanl'
317+ , postscanlM'
318318 -- , prescanl'
319319 -- , prescanlM'
320320 , scanl1'
@@ -1659,23 +1659,22 @@ scanlM' step begin m = fromStreamD $ D.scanlM' step begin $ toStreamD m
16591659scanl' :: (IsStream t, Monad m) => (b -> a -> b) -> b -> t m a -> t m b
16601660scanl' step z m = fromStreamS $ S.scanl' step z $ toStreamS m
16611661
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.
16641663--
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
16661665--
1667−-- @since 0.6.0
1668−{-# INLINE _postscanl' #-}
1669−_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
1666+-- @since 0.7.0
1667+{-# INLINE postscanl' #-}
1668+postscanl' :: (IsStream t, Monad m) => (b -> a -> b) -> b -> t m a -> t m b
1669+postscanl' step z m = fromStreamD $ D.postscanl' step z $ toStreamD m
16711670
16721671-- XXX this needs to be concurrent
1673−-- | Like postscanl' but with a monadic step function.
1672+-- | Like 'postscanl'' but with a monadic step function.
16741673--
1675−-- @since 0.6.0
1676−{-# INLINE _postscanlM' #-}
1677−_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
1674+-- @since 0.7.0
1675+{-# INLINE postscanlM' #-}
1676+postscanlM' :: (IsStream t, Monad m) => (b -> a -> m b) -> b -> t m a -> t m b
1677+postscanlM' step z m = fromStreamD $ D.postscanlM' step z $ toStreamD m
16791678
16801679-- XXX prescanl does not sound very useful, enable only if there is a
16811680-- compelling use case.