Control.Monad.Consumer
Description
A monad transformer for the [partial] consumption of Lists.
The interface closely mimics iterators in languages such as Python.
It is often nicer to avoid using Consumer and to use folds and higher-order functions instead.
Documentation
A monad tranformer for consuming Lists.