Diff-0.3.0: O(ND) diff algorithm in haskell.

Portabilityportable
Stabilityexperimental
Maintainers.clover@gmail.com
Safe HaskellSafe-Inferred

Data.Algorithm.DiffOutput

Description

Author : Stephan Wehr (wehrfactisresearch.com) and JP Moresmau (jpmoresmau.fr)

Generates a string output that is similar to diff normal mode

Synopsis

Documentation

ppDiff :: [Diff [String]] -> StringSource

pretty print the differences. The output is similar to the output of the diff utility

prettyDiffs :: [DiffOperation LineRange] -> DocSource

pretty print of diff operations

data LineRange Source

Constructors

LineRange 

Instances

data DiffOperation a Source

Constructors

Deletion a LineNo 
Addition a LineNo 
Change a a 

Instances