@@ -57,8 +57,6 @@ module Streamly.Internal.Data.Fold
5757 , countDistinct
5858 , countDistinctInt
5959 , mean
60− , variance
61− , stdDev
6260 , rollingHash
6361 , rollingHashWithSalt
6462 , rollingHashFirstN
@@ -285,6 +283,8 @@ module Streamly.Internal.Data.Fold
285283 -- * Deprecated
286284 , sequence
287285 , mapM
286+ , variance
287+ , stdDev
288288 )
289289where
290290
@@ -794,6 +794,7 @@ mean = fmap done $ foldl' step begin
794794-- the input stream.
795795--
796796-- @since 0.7.0
797+{-# DEPRECATED variance "Use the streamly-statistics package instead" #-}
797798{-# INLINE variance #-}
798799variance :: (Monad m, Fractional a) => Fold m a a
799800variance = fmap done $ foldl' step begin
@@ -817,6 +818,7 @@ variance = fmap done $ foldl' step begin
817818-- elements in the input stream.
818819--
819820-- @since 0.7.0
821+{-# DEPRECATED stdDev "Use the streamly-statistics package instead" #-}
820822{-# INLINE stdDev #-}
821823stdDev :: (Monad m, Floating a) => Fold m a a
822824stdDev = sqrt <$> variance