# foldl

> Composable, streaming strict left folds for Haskell

Source: https://talira.ai/catalog/foldl-crd4q5yw
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / general purpose](https://talira.ai/categories/libraries/general-purpose), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Gabriella Gonzalez](https://talira.ai/orgs/gabriella-gonzalez.md)

foldl gives Haskell strict left folds that stream in constant memory and combine in Applicative style, so you can compute several results (say, a sum and a length) in a single pass over the data without space leaks or hand-written strict accumulators. The combined fold is often as efficient as one written by hand, and because a Fold keeps its step function and accumulator, the same fold works on things other than pure collections, such as a pipes Producer. Gabriella Gonzalez wrote it.

## Links

- GitHub: https://github.com/Gabriella439/foldl

## Problems it solves

- compute several statistics over a list in one pass in Haskell
- avoid space leaks when folding large data in Haskell
- write reusable folds for streaming data

## Features

- strict left folds that run in constant memory
- combine folds with Applicative to compute several results in one pass
- built-in folds such as sum and length
- reuse the same fold on streams such as pipes producers

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.27, adoption 0.45, momentum 0.09, community 0.66, backing 0.30, extensibility 0.00.

- latest release 1.0.7 12.2 years ago
- 171 GitHub stars
- 44 contributors
- backed by Gabriella Gonzalez

Warnings:

- last commit 10 months ago

## Sources

[^1]: https://github.com/Gabriella439/foldl/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/Gabriella439/foldl/blob/main/LICENSE (checked 28 Nov 2026)
