precis-0.4.0: Diff Cabal packages.

Portabilityto be determined.
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Precis.Diff

Contents

Description

Two Diff types (3 state and 4 state)

Synopsis

Edit types

data Edit4 a Source

Constructors

ADD a 
DIF a a 
EQU a 
DEL a 

Instances

Functor Edit4 
Eq a => Eq (Edit4 a) 
Show a => Show (Edit4 a) 

data Edit3 a Source

Constructors

Add a 
Equ a 
Del a 

Instances

Functor Edit3 
Eq a => Eq (Edit3 a) 
Show a => Show (Edit3 a) 

Edit operations

diff4 :: (a -> a -> Bool) -> (a -> a -> Bool) -> [a] -> [a] -> [Edit4 a]Source

diff3 :: (a -> a -> Bool) -> [a] -> [a] -> [Edit3 a]Source

addedRemoved :: [Edit4 a] -> ([a], [a])Source

conflictRemoved :: [Edit4 a] -> ([(a, a)], [a])Source

addedConflictRemoved :: [Edit4 a] -> ([a], [(a, a)], [a])Source