Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype UnfoldM m input = UnfoldM (forall output. (output -> input -> m output) -> output -> m output)
- foldlM' :: Monad m => (output -> input -> m output) -> output -> UnfoldM m input -> m output
- mapM_ :: Monad m => (input -> m ()) -> UnfoldM m input -> m ()
- forM_ :: Monad m => UnfoldM m input -> (input -> m ()) -> m ()
- fold :: Fold input output -> UnfoldM Identity input -> output
- foldM :: Monad m => FoldM m input output -> UnfoldM m input -> m output
- foldable :: (Monad m, Foldable foldable) => foldable a -> UnfoldM m a
- intsInRange :: Monad m => Int -> Int -> UnfoldM m Int
Documentation
newtype UnfoldM m input Source #
A monadic variation of DeferredFolds.Unfold
UnfoldM (forall output. (output -> input -> m output) -> output -> m output) |
Instances
foldlM' :: Monad m => (output -> input -> m output) -> output -> UnfoldM m input -> m output Source #
Perform a monadic strict left fold
foldM :: Monad m => FoldM m input output -> UnfoldM m input -> m output Source #
Apply a monadic Gonzalez fold