foldl 1.4.3 → 1.4.4
raw patch · 4 files changed
+9/−4 lines, 4 filesdep ~containersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: containers
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- README.md +1/−1
- foldl.cabal +2/−2
- src/Control/Foldl.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+1.4.4++* Increase lower bound on `base`+* Change `mean` to be more numerically stable+ 1.4.3 * Add `Control.Scanl.scanr`
README.md view
@@ -1,4 +1,4 @@-# `foldl` v1.4.3+# `foldl` v1.4.4 Use this `foldl` library when you want to compute multiple folds over a collection in one pass over the data without space leaks.
foldl.cabal view
@@ -1,5 +1,5 @@ Name: foldl-Version: 1.4.3+Version: 1.4.4 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3@@ -24,7 +24,7 @@ Library HS-Source-Dirs: src Build-Depends:- base >= 4.5 && < 5 ,+ base >= 4.8 && < 5 , bytestring >= 0.9.2.1 && < 0.11, mwc-random >= 0.13.1.0 && < 0.15, primitive < 0.7 ,
src/Control/Foldl.hs view
@@ -626,7 +626,7 @@ mean = Fold step begin done where begin = Pair 0 0- step (Pair x n) y = Pair ((x * n + y) / (n + 1)) (n + 1)+ step (Pair x n) y = let n' = n+1 in Pair (x + (y - x) /n') n' done (Pair x _) = x {-# INLINABLE mean #-}