tree-diff

Common diff algorithm works on list structures: This package works on trees. This package also provides a way to diff arbitrary ADTs, using Generics-derivable helpers. This package differs from gdiff, in a two ways: tree-diff doesn't have patch function, and the "edit-script" is a tree itself, which is useful for pretty-printing.


Keywords
data, gpl, library, testing, Propose Tags , Data.TreeDiff, Data.TreeDiff.Class, Data.TreeDiff.Expr, Data.TreeDiff.Golden, Data.TreeDiff.List, Data.TreeDiff.Parser, Data.TreeDiff.Pretty, Data.TreeDiff.QuickCheck, Data.TreeDiff.Tree
License
CNRI-Python-GPL-Compatible
Install
cabal install tree-diff-0.0.2

Documentation

tree-diff

Diffing of (expression) trees.

Examples

tree-diff displays pretty diffs of tree data:

Because of its untyped internal type, it copes with type changes:

As a bonus, multiline Strings and Text are diffed linewise: