@@ -207,8 +207,8 @@ module Streamly.Internal.Data.Fold.Type
207207 , mkFoldM_
208208
209209 -- * Folds
210− , yield
211− , yieldM
210+ , fromPure
211+ , fromEffect
212212 , drain
213213 , toList
214214
@@ -616,26 +616,26 @@ instance Functor m => Functor (Fold m a) where
616616 step s b = fmap2 f (step1 s b)
617617 fmap2 g = fmap (fmap g)
618618
619−-- This is the dual of stream "yield".
619+-- This is the dual of stream "fromPure".
620620--
621621-- | A fold that always yields a pure value without consuming any input.
622622--
623623-- /Pre-release/
624624--
625−{-# INLINE yield #-}
626−yield :: Applicative m => b -> Fold m a b
627−yield b = Fold undefined (pure $ Done b) pure
625+{-# INLINE fromPure #-}
626+fromPure :: Applicative m => b -> Fold m a b
627+fromPure b = Fold undefined (pure $ Done b) pure
628628
629−-- This is the dual of stream "yieldM".
629+-- This is the dual of stream "fromEffect".
630630--
631631-- | A fold that always yields the result of an effectful action without
632632-- consuming any input.
633633--
634634-- /Pre-release/
635635--
636−{-# INLINE yieldM #-}
637−yieldM :: Applicative m => m b -> Fold m a b
638−yieldM b = Fold undefined (Done <$> b) pure
636+{-# INLINE fromEffect #-}
637+fromEffect :: Applicative m => m b -> Fold m a b
638+fromEffect b = Fold undefined (Done <$> b) pure
639639
640640{-# ANN type Step Fuse #-}
641641data SeqFoldState sl f sr = SeqFoldL !sl | SeqFoldR !f !sr
@@ -1030,9 +1030,9 @@ duplicate (Fold step1 initial1 extract1) =
10301030
10311031 where
10321032
1033− initial = second yield <$> initial1
1033+ initial = second fromPure <$> initial1
10341034
1035− step s a = second yield <$> step1 s a
1035+ step s a = second fromPure <$> step1 s a
10361036
10371037-- | Run the initialization effect of a fold. The returned fold would use the
10381038-- value returned by this effect as its initial value.