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

Copyright(c) Sterling Clover 2008-2011, Kevin Charter 2011
LicenseBSD 3 Clause
Maintainers.clover@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

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]] -> String Source

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

prettyDiffs :: [DiffOperation LineRange] -> Doc Source

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