# Diff (Haskell)

> The standard O(ND) diff algorithm in pure Haskell, with pretty-printing utilities

Source: https://talira.ai/catalog/diff-haskell-ecat2pvn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / text / diffing](https://talira.ai/categories/libraries/text/diffing), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: Diff BSD 3-clause licence[^1][^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (BSD-3-Clause).
- Free tier: yes[^1]
- Backed by: [seereason](https://talira.ai/orgs/seereason.md)

Diff is a pure-Haskell implementation of the standard diff algorithm, written by Sterling Clover and now maintained by seereason. It runs in O(ND) time, where N is the input length and D the number of differences, and O(D^2) space, and includes utilities for pretty-printing the differences it finds. Its source can be checked with LiquidHaskell.

## Links

- GitHub: https://github.com/seereason/Diff

## Problems it solves

- compute the differences between two lists or texts in Haskell
- show a line-by-line diff of two strings from a Haskell program
- find the minimal edit between two sequences in pure Haskell

## Features

- O(ND) time and O(D^2) space diff algorithm
- pretty-printing utilities for differences
- source checkable with LiquidHaskell

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.49, adoption 0.20, momentum 0.01, community 0.42, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 6 commits in the last 90 days
- latest release 2.0.1 2 months ago
- 9 GitHub stars
- 10 contributors
- backed by seereason

## Sources

[^1]: https://github.com/seereason/Diff/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/seereason/Diff/blob/master/Diff.cabal (checked 29 Nov 2026)
