packages feed

foldl 1.3.4 → 1.3.5

raw patch · 4 files changed

+10/−2 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Control.Foldl: instance Data.Profunctor.Choice.Choice Control.Foldl.Fold

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+1.3.5++* Add `Choice` instance for `Fold`+ 1.3.4  * Add `prefilter` and `prefilterM`
README.md view
@@ -1,4 +1,4 @@-# `foldl` v1.3.4+# `foldl` v1.3.5  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.3.4+Version: 1.3.5 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3
src/Control/Foldl.hs view
@@ -208,6 +208,10 @@     lmap = premap     rmap = fmap +instance Choice Fold where+  right' (Fold step begin done) = Fold (liftA2 step) (Right begin) (fmap done)+  {-# INLINE right' #-}+ instance Comonad (Fold a) where     extract (Fold _ begin done) = done begin     {-#  INLINE extract #-}