@@ -478,7 +478,7 @@ postscan (Fold stepL initialL extractL) (Fold stepR initialR extractR) =
478478-- See also: 'Streamly.Prelude.mapM_'
479479--
480480-- @since 0.7.0
481−{-# INLINABLE drainBy #-}
481+{-# INLINE drainBy #-}
482482drainBy :: Monad m => (a -> m b) -> Fold m a ()
483483drainBy f = lmapM f drain
484484
@@ -487,7 +487,7 @@ drainBy f = lmapM f drain
487487-- > last = fmap getLast $ Fold.foldMap (Last . Just)
488488--
489489-- @since 0.7.0
490−{-# INLINABLE last #-}
490+{-# INLINE last #-}
491491last :: Monad m => Fold m a (Maybe a)
492492last = foldl1' (\_ x -> x)
493493
@@ -612,7 +612,7 @@ minimum = foldl1' min
612612-- stream.
613613--
614614-- @since 0.7.0
615−{-# INLINABLE mean #-}
615+{-# INLINE mean #-}
616616mean :: (Monad m, Fractional a) => Fold m a a
617617mean = fmap done $ foldl' step begin
618618
@@ -630,7 +630,7 @@ mean = fmap done $ foldl' step begin
630630-- the input stream.
631631--
632632-- @since 0.7.0
633−{-# INLINABLE variance #-}
633+{-# INLINE variance #-}
634634variance :: (Monad m, Fractional a) => Fold m a a
635635variance = fmap done $ foldl' step begin
636636
@@ -653,7 +653,7 @@ variance = fmap done $ foldl' step begin
653653-- elements in the input stream.
654654--
655655-- @since 0.7.0
656−{-# INLINABLE stdDev #-}
656+{-# INLINE stdDev #-}
657657stdDev :: (Monad m, Floating a) => Fold m a a
658658stdDev = sqrt <$> variance
659659
@@ -669,7 +669,7 @@ stdDev = sqrt <$> variance
669669-- See https://en.wikipedia.org/wiki/Rolling_hash
670670--
671671-- @since 0.8.0
672−{-# INLINABLE rollingHashWithSalt #-}
672+{-# INLINE rollingHashWithSalt #-}
673673rollingHashWithSalt :: (Monad m, Enum a) => Int64 -> Fold m a Int64
674674rollingHashWithSalt = foldl' step
675675
@@ -689,7 +689,7 @@ defaultSalt = -2578643520546668380
689689-- > rollingHash = Fold.rollingHashWithSalt defaultSalt
690690--
691691-- @since 0.8.0
692−{-# INLINABLE rollingHash #-}
692+{-# INLINE rollingHash #-}
693693rollingHash :: (Monad m, Enum a) => Fold m a Int64
694694rollingHash = rollingHashWithSalt defaultSalt
695695
@@ -699,7 +699,7 @@ rollingHash = rollingHashWithSalt defaultSalt
699699-- > rollingHashFirstN = Fold.take n Fold.rollingHash
700700--
701701-- /Pre-release/
702−{-# INLINABLE rollingHashFirstN #-}
702+{-# INLINE rollingHashFirstN #-}
703703rollingHashFirstN :: (Monad m, Enum a) => Int -> Fold m a Int64
704704rollingHashFirstN n = take n rollingHash
705705
@@ -749,7 +749,7 @@ mconcat = sconcat mempty
749749-- Sum {getSum = 55}
750750--
751751-- @since 0.7.0
752−{-# INLINABLE foldMap #-}
752+{-# INLINE foldMap #-}
753753foldMap :: (Monad m, Monoid b
754754#if !MIN_VERSION_base(4,11,0)
755755 , Semigroup b
@@ -767,7 +767,7 @@ foldMap f = lmap f mconcat
767767-- Sum {getSum = 55}
768768--
769769-- @since 0.7.0
770−{-# INLINABLE foldMapM #-}
770+{-# INLINE foldMapM #-}
771771foldMapM :: (Monad m, Monoid b) => (a -> m b) -> Fold m a b
772772foldMapM act = foldlM' step (pure mempty)
773773
@@ -795,7 +795,7 @@ foldMapM act = foldlM' step (pure mempty)
795795-- @since 0.8.0
796796
797797-- xn : ... : x2 : x1 : []
798−{-# INLINABLE toListRev #-}
798+{-# INLINE toListRev #-}
799799toListRev :: Monad m => Fold m a [a]
800800toListRev = foldl' (flip (:)) []
801801
@@ -820,7 +820,7 @@ drainN n = take n drain
820820-- | Like 'index', except with a more general 'Integral' argument
821821--
822822-- /Pre-release/
823−{-# INLINABLE genericIndex #-}
823+{-# INLINE genericIndex #-}
824824genericIndex :: (Integral i, Monad m) => i -> Fold m a (Maybe a)
825825genericIndex i = mkFold step (Partial 0) (const Nothing)
826826
@@ -836,21 +836,21 @@ genericIndex i = mkFold step (Partial 0) (const Nothing)
836836-- See also: 'Streamly.Prelude.!!'
837837--
838838-- @since 0.7.0
839−{-# INLINABLE index #-}
839+{-# INLINE index #-}
840840index :: Monad m => Int -> Fold m a (Maybe a)
841841index = genericIndex
842842
843843-- | Extract the first element of the stream, if any.
844844--
845845-- @since 0.7.0
846−{-# INLINABLE head #-}
846+{-# INLINE head #-}
847847head :: Monad m => Fold m a (Maybe a)
848848head = mkFold_ (const (Done . Just)) (Partial Nothing)
849849
850850-- | Returns the first element that satisfies the given predicate.
851851--
852852-- @since 0.7.0
853−{-# INLINABLE find #-}
853+{-# INLINE find #-}
854854find :: Monad m => (a -> Bool) -> Fold m a (Maybe a)
855855find predicate = mkFold step (Partial ()) (const Nothing)
856856
@@ -867,7 +867,7 @@ find predicate = mkFold step (Partial ()) (const Nothing)
867867-- > lookup = snd <$> Fold.find ((==) . fst)
868868--
869869-- @since 0.7.0
870−{-# INLINABLE lookup #-}
870+{-# INLINE lookup #-}
871871lookup :: (Eq a, Monad m) => a -> Fold m (a,b) (Maybe b)
872872lookup a0 = mkFold step (Partial ()) (const Nothing)
873873
@@ -881,7 +881,7 @@ lookup a0 = mkFold step (Partial ()) (const Nothing)
881881-- | Returns the first index that satisfies the given predicate.
882882--
883883-- @since 0.7.0
884−{-# INLINABLE findIndex #-}
884+{-# INLINE findIndex #-}
885885findIndex :: Monad m => (a -> Bool) -> Fold m a (Maybe Int)
886886findIndex predicate = mkFold step (Partial 0) (const Nothing)
887887
@@ -897,7 +897,7 @@ findIndex predicate = mkFold step (Partial 0) (const Nothing)
897897-- > elemIndex a = Fold.findIndex (== a)
898898--
899899-- @since 0.7.0
900−{-# INLINABLE elemIndex #-}
900+{-# INLINE elemIndex #-}
901901elemIndex :: (Eq a, Monad m) => a -> Fold m a (Maybe Int)
902902elemIndex a = findIndex (a ==)
903903
@@ -910,7 +910,7 @@ elemIndex a = findIndex (a ==)
910910-- > null = fmap isJust Fold.head
911911--
912912-- @since 0.7.0
913−{-# INLINABLE null #-}
913+{-# INLINE null #-}
914914null :: Monad m => Fold m a Bool
915915null = mkFold (\() _ -> Done False) (Partial ()) (const True)
916916
@@ -940,7 +940,7 @@ any predicate = mkFold_ step initial
940940-- > elem a = Fold.any (== a)
941941--
942942-- @since 0.7.0
943−{-# INLINABLE elem #-}
943+{-# INLINE elem #-}
944944elem :: (Eq a, Monad m) => a -> Fold m a Bool
945945elem a = any (a ==)
946946
@@ -952,7 +952,7 @@ elem a = any (a ==)
952952-- > all p = Fold.lmap p Fold.and
953953--
954954-- @since 0.7.0
955−{-# INLINABLE all #-}
955+{-# INLINE all #-}
956956all :: Monad m => (a -> Bool) -> Fold m a Bool
957957all predicate = mkFold_ step initial
958958
@@ -970,7 +970,7 @@ all predicate = mkFold_ step initial
970970-- > notElem a = Fold.all (/= a)
971971--
972972-- @since 0.7.0
973−{-# INLINABLE notElem #-}
973+{-# INLINE notElem #-}
974974notElem :: (Eq a, Monad m) => a -> Fold m a Bool
975975notElem a = all (a /=)
976976
@@ -1782,6 +1782,6 @@ toStream = fmap SerialT toStreamK
17821782-- /Pre-release/
17831783
17841784-- xn : ... : x2 : x1 : []
1785−{-# INLINABLE toStreamRev #-}
1785+{-# INLINE toStreamRev #-}
17861786toStreamRev :: Monad m => Fold m a (SerialT n a)
17871787toStreamRev = fmap SerialT toStreamKRev