conduit-extra-1.2.0: Batteries included conduit: adapters for common libraries.

Data.Conduit.Foldl

Description

Adapter module to work with the foldl package.

Since: 1.1.16

Synopsis

sinkFold :: Monad m => (x -> a -> x) -> x -> (x -> b) -> Consumer a m b Source #

Convert a left fold into a Consumer. This function is intended to be used with purely from the foldl package.

Consumer

purely

sinkFoldM :: Monad m => (x -> a -> m x) -> m x -> (x -> m b) -> Consumer a m b Source #

Convert a monadic left fold into a Consumer. This function is intended to be used with impurely from the foldl package.

impurely