You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-haskell/tree-diff/metadata.xml

37 lines
1.0 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
<longdescription>
Common diff algorithm works on list structures:
@
diff :: Eq a =&gt; [a] -&gt; [a] -&gt; [Edit a]
@
This package works on trees.
@
treeDiff :: Eq a =&gt; Tree a -&gt; Tree a -&gt; Edit (EditTree a)
@
This package also provides a way to diff arbitrary ADTs,
using @Generics@-derivable helpers.
This package differs from &lt;http://hackage.haskell.org/package/gdiff gdiff&gt;,
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.
@
&gt;&gt;&gt; prettyEditExpr $ ediff (Foo 42 [True, False] "old") (Foo 42 [False, False, True] "new")
Foo
{fooBool = [-True, +False, False, +True],
fooInt = 42,
fooString = -"old" +"new"}
@
</longdescription>
</pkgmetadata>