@@ -181,8 +181,8 @@ module Streamly.Internal.Data.Fold.Types
181 -- * Transformations
181 -- * Transformations
184− , lfilter
184+ , filter
185− , lfilterM
185+ , filterM
186 , lcatMaybes
186 , lcatMaybes
188 , takeByTime
188 , takeByTime
@@ -230,7 +230,7 @@ import Fusion.Plugin.Types (Fuse(..))
230import Streamly.Internal.Data.Tuple.Strict (Tuple'(..), Tuple3'(..))
230import Streamly.Internal.Data.Tuple.Strict (Tuple'(..), Tuple3'(..))
231import Streamly.Internal.Data.SVar (MonadAsync)
231import Streamly.Internal.Data.SVar (MonadAsync)
233−import Prelude hiding (concatMap)
233+import Prelude hiding (concatMap, filter)
235------------------------------------------------------------------------------
235------------------------------------------------------------------------------
236-- Monadic left folds
236-- Monadic left folds
@@ -671,22 +671,22 @@ lmapM f (Fold step begin done) = Fold step' begin done
672-- | Include only those elements that pass a predicate.
672-- | Include only those elements that pass a predicate.
674−-- >>> S.fold (lfilter (> 5) FL.sum) [1..10]
674+-- >>> S.fold (filter (> 5) FL.sum) [1..10]
677-- @since 0.7.0
677-- @since 0.7.0
678−{-# INLINABLE lfilter #-}
678+{-# INLINABLE filter #-}
679−lfilter :: Monad m => (a -> Bool) -> Fold m a r -> Fold m a r
679+filter :: Monad m => (a -> Bool) -> Fold m a r -> Fold m a r
680−lfilter f (Fold step begin done) = Fold step' begin done
680+filter f (Fold step begin done) = Fold step' begin done
682 step' x a = if f a then step x a else return $ Partial x
682 step' x a = if f a then step x a else return $ Partial x
684−-- | Like 'lfilter' but with a monadic predicate.
684+-- | Like 'filter' but with a monadic predicate.
686-- @since 0.7.0
686-- @since 0.7.0
687−{-# INLINABLE lfilterM #-}
687+{-# INLINABLE filterM #-}
688−lfilterM :: Monad m => (a -> m Bool) -> Fold m a r -> Fold m a r
688+filterM :: Monad m => (a -> m Bool) -> Fold m a r -> Fold m a r
689−lfilterM f (Fold step begin done) = Fold step' begin done
689+filterM f (Fold step begin done) = Fold step' begin done
691 step' x a = do
691 step' x a = do
692 use <- f a
692 use <- f a
@@ -696,7 +696,7 @@ lfilterM f (Fold step begin done) = Fold step' begin done
696-- 'Just' values.
696-- 'Just' values.
697{-# INLINE lcatMaybes #-}
697{-# INLINE lcatMaybes #-}
698lcatMaybes :: Monad m => Fold m a b -> Fold m (Maybe a) b
698lcatMaybes :: Monad m => Fold m a b -> Fold m (Maybe a) b
699−lcatMaybes = lfilter isJust . lmap fromJust
699+lcatMaybes = filter isJust . lmap fromJust
701------------------------------------------------------------------------------
701------------------------------------------------------------------------------
702-- Parsing
702-- Parsing