packages feed

deferred-folds 0.6.4 → 0.6.5

raw patch · 3 files changed

+7/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ DeferredFolds.Unfold: instance GHC.Show.Show a => GHC.Show.Show (DeferredFolds.Unfold.Unfold a)
+ DeferredFolds.UnfoldM: instance GHC.Show.Show a => GHC.Show.Show (DeferredFolds.UnfoldM.UnfoldM Data.Functor.Identity.Identity a)

Files

deferred-folds.cabal view
@@ -1,7 +1,7 @@ name:   deferred-folds version:-  0.6.4+  0.6.5 category:   Folding synopsis:
library/DeferredFolds/Unfold.hs view
@@ -110,6 +110,9 @@ instance Eq a => Eq (Unfold a) where   (==) left right = toList left == toList right +instance Show a => Show (Unfold a) where+  show = show . toList+ {-| Apply a Gonzalez fold -} {-# INLINE fold #-} fold :: Fold input output -> Unfold input -> output
library/DeferredFolds/UnfoldM.hs view
@@ -62,6 +62,9 @@ instance Eq a => Eq (UnfoldM Identity a) where   (==) left right = toList left == toList right +instance Show a => Show (UnfoldM Identity a) where+  show = show . toList+ {-| Perform a monadic strict left fold -} {-# INLINE foldlM' #-} foldlM' :: Monad m => (output -> input -> m output) -> output -> UnfoldM m input -> m output