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
gpl, library, testing, Propose Tags , gdiff, Skip to Readme, , Index, Quick Jump, Data.TreeDiff, Data.TreeDiff.Class, Data.TreeDiff.Expr, Data.TreeDiff.Golden, Data.TreeDiff.List, Data.TreeDiff.OMap, Data.TreeDiff.Parser, Data.TreeDiff.Pretty, Data.TreeDiff.QuickCheck, Data.TreeDiff.Tree, tree-diff-0.3.0.1.tar.gz, browse, Package description, Package maintainers, phadej, edit package information , 0, 0.0.2, 0.0.2.1, 0.1, 0.2
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: