@@ -201,8 +201,8 @@ module Streamly.Internal.Data.Unfold
201201 , map
202202 , mapM
203203 , mapMWithInput
204− , scanlM'
205− , scan
204+ , postscanlM'
205+ , postscan
206206 , foldMany
207207 -- pipe
208208
@@ -478,9 +478,9 @@ either (Unfold step1 inject1) = Unfold step inject
478478-- | Scan the output of an 'Unfold' to change it in a stateful manner.
479479--
480480-- /Pre-release/
481−{-# INLINE_NORMAL scan #-}
482−scan :: Monad m => Fold m b c -> Unfold m a b -> Unfold m a c
483−scan (Fold stepF initial extract) (Unfold stepU injectU) =
481+{-# INLINE_NORMAL postscan #-}
482+postscan :: Monad m => Fold m b c -> Unfold m a b -> Unfold m a c
483+postscan (Fold stepF initial extract) (Unfold stepU injectU) =
484484 Unfold step inject
485485
486486 where
@@ -509,10 +509,10 @@ scan (Fold stepF initial extract) (Unfold stepU injectU) =
509509
510510-- | Scan the output of an 'Unfold' to change it in a stateful manner.
511511--
512−-- /Unimplemented/
513−{-# INLINE_NORMAL scanlM' #-}
514−scanlM' :: Monad m => (b -> a -> m b) -> m b -> Unfold m c a -> Unfold m c b
515−scanlM' f z = scan (FL.foldlM' f z)
512+-- /Pre-release/
513+{-# INLINE_NORMAL postscanlM' #-}
514+postscanlM' :: Monad m => (b -> a -> m b) -> m b -> Unfold m c a -> Unfold m c b
515+postscanlM' f z = postscan (FL.foldlM' f z)
516516
517517-------------------------------------------------------------------------------
518518-- Convert streams into unfolds