deferred-folds 0.5.1 → 0.5.2
raw patch · 2 files changed
+5/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ DeferredFolds.UnfoldM: forM_ :: Monad m => (input -> m ()) -> UnfoldM m input -> m ()
Files
deferred-folds.cabal view
@@ -1,7 +1,7 @@ name: deferred-folds version:- 0.5.1+ 0.5.2 category: Folding synopsis:
library/DeferredFolds/UnfoldM.hs view
@@ -64,6 +64,10 @@ foldlM' step init (UnfoldM run) = run step init +{-# INLINE forM_ #-}+forM_ :: Monad m => (input -> m ()) -> UnfoldM m input -> m ()+forM_ step = foldlM' (const step) ()+ {-| Apply a Gonzalez fold -} {-# INLINE fold #-} fold :: Fold input output -> UnfoldM Identity input -> output