@@ -107,7 +107,7 @@ module Streamly.Internal.Data.Fold
107107
108108 -- ** Mapping
109109 , transform
110− , lmap
110+ , map
111111 --, lsequence
112112 , lmapM
113113 -- ** Filtering
@@ -403,7 +403,7 @@ mapM f = sequence . fmap f
403403-- /Internal/
404404{-# INLINE mapMaybe #-}
405405mapMaybe :: (Monad m) => (a -> Maybe b) -> Fold m b r -> Fold m a r
406−mapMaybe f = lmap f . filter isJust . lmap fromJust
406+mapMaybe f = map f . filter isJust . map fromJust
407407
408408------------------------------------------------------------------------------
409409-- Transformations on fold inputs
@@ -750,7 +750,7 @@ mconcat ::
750750mconcat = sconcat mempty
751751
752752-- |
753−-- > foldMap f = lmap f mconcat
753+-- > foldMap f = map f mconcat
754754--
755755-- Make a fold from a pure function that folds the output of the function
756756-- using 'mappend' and 'mempty'.
@@ -764,7 +764,7 @@ foldMap :: (Monad m, Monoid b
764764 , Semigroup b
765765#endif
766766 ) => (a -> b) -> Fold m a b
767−foldMap f = lmap f mconcat
767+foldMap f = map f mconcat
768768
769769-- |
770770-- > foldMapM f = lmapM f mconcat
@@ -935,7 +935,7 @@ null :: Monad m => Fold m a Bool
935935null = mkFold (\() _ -> Done False) (Partial ()) (const True)
936936
937937--
938−-- > any p = lmap p or
938+-- > any p = map p or
939939-- > any p = fmap getAny . FL.foldMap (Any . p)
940940--
941941-- | Returns 'True' if any of the elements of a stream satisfies a predicate.
@@ -967,7 +967,7 @@ elem :: (Eq a, Monad m) => a -> Fold m a Bool
967967elem a = any (a ==)
968968
969969--
970−-- > all p = lmap p and
970+-- > all p = map p and
971971-- > all p = fmap getAll . FL.foldMap (All . p)
972972--
973973-- | Returns 'True' if all elements of a stream satisfy a predicate.
@@ -1992,11 +1992,11 @@ classifyWith f (Fold step1 initial1 extract1) = mkAccumM step initial extract
19921992
19931993-- Same as:
19941994--
1995−-- > classify fld = classifyWith fst (lmap snd fld)
1995+-- > classify fld = classifyWith fst (map snd fld)
19961996--
19971997{-# INLINE classify #-}
19981998classify :: (Monad m, Ord k) => Fold m a b -> Fold m (k, a) (Map k b)
1999−classify fld = classifyWith fst (lmap snd fld)
1999+classify fld = classifyWith fst (map snd fld)
20002000
20012001------------------------------------------------------------------------------
20022002-- Unzipping
@@ -2086,7 +2086,7 @@ unzipWithMinM = undefined
20862086-- | Split elements in the input stream into two parts using a pure splitter
20872087-- function, direct each part to a different fold and zip the results.
20882088--
2089−-- @unzipWith f fld1 fld2 = lmap f (unzip fld1 fld2)@
2089+-- @unzipWith f fld1 fld2 = map f (unzip fld1 fld2)@
20902090--
20912091-- This fold terminates when both the input folds terminate.
20922092--