Diff-0.3.4: 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
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

diffToLineRanges :: [Diff [String]] -> [DiffOperation LineRange] Source #

Converts Diffs to DiffOperations

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

parsePrettyDiffs :: String -> [DiffOperation LineRange] Source #

Parse pretty printed Diffs as DiffOperations

type LineNo = Int Source #

Line number alias