tree-diff: Diffing of (expression) trees.
Common diff algorithm works on list structures:
diff :: Eq a => [a] -> [a] -> [Edit a]
This package works on trees.
treeDiff :: Eq a => Tree a -> Tree a -> Edit (EditTree a)
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.
>>> prettyEditExpr $ ediff (Foo 42 [True, False] "old") (Foo 42 [False, False, True] "new") Foo {fooBool = [-True, +False, False, +True], fooInt = 42, fooString = -"old" +"new"}
[Skip to Readme]
Modules
[Index]
Downloads
- tree-diff-0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0, 0.0.0.1, 0.0.1, 0.0.2, 0.0.2.1, 0.1, 0.2, 0.2.1, 0.2.1.1, 0.2.2, 0.3, 0.3.0.1, 0.3.1, 0.3.2, 0.3.3 |
---|---|
Change log | ChangeLog.md |
Dependencies | aeson (>=1.2.1.0 && <1.3), ansi-terminal (>=0.6.3.1 && <0.8), ansi-wl-pprint (>=0.6.8.1 && <0.7), base (>=4.7 && <4.11), base-compat (>=0.9.3 && <0.10), bytestring (>=0.10.4.0 && <0.11), containers (>=0.5.5.1 && <0.6), generics-sop (>=0.3.1.0 && <0.4), hashable (>=1.2.6.1 && <1.3), MemoTrie (>=0.6.8 && <0.7), nats (>=1.1.1 && <1.2), parsec (>=3.1.11 && <3.2), parsers (>=0.12.7 && <0.13), pretty (>=1.1.1.1 && <1.2), QuickCheck (>=2.10.0.1 && <2.11), scientific (>=0.3.5.2 && <0.4), semigroups (>=0.18.3 && <0.19), tagged (>=0.8.5 && <0.9), text (>=1.2.2.2 && <1.3), time (>=1.4.2 && <1.9), transformers (>=0.3.0.0 && <0.6), unordered-containers (>=0.2.8.0 && <0.3), uuid-types (>=1.0.3 && <1.1), vector (>=0.12 && <0.13), void (>=0.7.2 && <0.8) [details] |
Tested with | ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.1 |
License | BSD-3-Clause |
Copyright | (c) 2017 Oleg Grenrus |
Author | Oleg Grenrus <oleg.grenrus@iki.fi> |
Maintainer | Oleg.Grenrus <oleg.grenrus@iki.fi> |
Revised | Revision 1 made by phadej at 2017-10-19T10:22:16Z |
Category | Data |
Home page | https://github.com/phadej/tree-diff |
Bug tracker | https://github.com/phadej/tree-diff/issues |
Source repo | head: git clone https://github.com/phadej/tree-diff.git |
Uploaded | by phadej at 2017-09-22T16:32:08Z |
Distributions | Arch:0.3.0.1, LTSHaskell:0.3.3, NixOS:0.3.0.1, Stackage:0.3.3 |
Reverse Dependencies | 6 direct, 13 indirect [details] |
Downloads | 27534 total (296 in the last 30 days) |
Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-09-22 [all 1 reports] |