How to Install and Uninstall ghc-tree-diff Package on openSUSE Leap

Last updated: November 23,2024

1. Install "ghc-tree-diff" package

Here is a brief guide to show you how to install ghc-tree-diff on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install ghc-tree-diff

2. Uninstall "ghc-tree-diff" package

In this section, we are going to explain the necessary steps to uninstall ghc-tree-diff on openSUSE Leap:

$ sudo zypper remove ghc-tree-diff

3. Information about the ghc-tree-diff package on openSUSE Leap

Information for package ghc-tree-diff:
--------------------------------------
Repository : Main Repository
Name : ghc-tree-diff
Version : 0.2.1.1-bp155.2.14
Arch : x86_64
Vendor : openSUSE
Installed Size : 558.8 KiB
Installed : No
Status : not installed
Source package : ghc-tree-diff-0.2.1.1-bp155.2.14.src
Upstream URL : https://hackage.haskell.org/package/tree-diff
Summary : Diffing of (expression) trees
Description :
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 , 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"} '.

5. The same packages on other Linux Distributions