packages feed

gambler 0.0.0.1 → 0.0.1.0

raw patch · 4 files changed

+8/−3 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Fold.Nonempty: effectfulFold :: EffectfulFold Identity a b -> NonemptyFold a b

Files

changelog.md view
@@ -1,3 +1,8 @@+## 0.0.1.0 (2023-02-20)++Add `Fold.Nonempty.effectfulFold`; this was already available from+`Fold.Nonempty.Conversion`, but now it is also re-exported from `Fold.Nonempty`.+ ## 0.0.0.1 (2023-02-17)  Remove benchmark, which was broken
gambler.cabal view
@@ -1,7 +1,7 @@ cabal-version: 3.0  name: gambler-version: 0.0.0.1+version: 0.0.1.0  category: Streaming synopsis: Composable, streaming, and efficient left folds
source/Fold/Nonempty.hs view
@@ -17,7 +17,7 @@     {- *** Index -} index, findIndex, elementIndex,     {- *** List -} list, reverseList, -    {- * Conversion -} fold,+    {- * Conversion -} fold, effectfulFold,      {- * Utilities -} duplicate, premap, nest,   )
source/Fold/Nonempty/Conversion.hs view
@@ -14,7 +14,7 @@ {-| Turn a regular fold that allows empty input into a fold that requires at least one input -} fold :: Fold a b -> NonemptyFold a b-fold Fold{ Fold.step, Fold.initial, Fold.extract } =+fold Fold{ Fold.initial, Fold.step, Fold.extract } =     NonemptyFold{ initial = step initial, step, extract }  {-| Turn an effectful fold into a pure fold that requires at least