deferred-folds 0.6.6 → 0.6.7
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: null :: Monad m => UnfoldM m input -> m Bool
Files
deferred-folds.cabal view
@@ -1,7 +1,7 @@ name: deferred-folds version:- 0.6.6+ 0.6.7 category: Folding synopsis:
library/DeferredFolds/UnfoldM.hs view
@@ -68,6 +68,10 @@ instance Show a => Show (UnfoldM Identity a) where show = show . toList +{-# INLINE null #-}+null :: Monad m => UnfoldM m input -> m Bool+null (UnfoldM run) = run (\ _ _ -> return False) True+ {-| Perform a monadic strict left fold -} {-# INLINE foldlM' #-} foldlM' :: Monad m => (output -> input -> m output) -> output -> UnfoldM m input -> m output