Modulefast-myers-diff-0.0.2Haskell2010
Myers.Diff
Myers Diff
This is an implementation of the O(ND) diff algorithm as described in "An O(ND) Difference Algorithm and Its Variations (1986)" http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927.
Synopsis
- type Diff
- data PolyDiff
- value getTextDiff
- value getStringDiff
- value getGroupedStringDiff
- value getVectorDiff
- value getGroupedVectorDiff
- value getVectorDiffBy
- value getGroupedVectorDiffBy
- value getTextEditDistance
- value getStringEditDistance
- value getEditDistance
- value getEditDistanceBy
- data Edit
- value getEditScript
- value getEditScriptBy
- value computeDiffFromEditScript
- value computeGroupedDiffFromEditScript
- value getDiff
- value getDiffBy
- value getGroupedDiff
- value getGroupedDiffBy
- Packagefast-myers-diff-0.0.2
- Exports22
- LanguageHaskell2010
- LicenceMIT
- SourceDiff.hs
Diffing
Instances5Eq, Show, Generic, NFData, Rep
(Eq a, Eq b) => Eq (PolyDiff a b)Defined in fast-myers-diff-0.0.2 · Myers.Diff(Show a, Show b) => Show (PolyDiff a b)Defined in fast-myers-diff-0.0.2 · Myers.DiffGeneric (PolyDiff a b)Defined in fast-myers-diff-0.0.2 · Myers.Diff(NFData a, NFData b) => NFData (PolyDiff a b)Defined in fast-myers-diff-0.0.2 · Myers.Difftype Rep (PolyDiff a b) = D1 ('MetaDataDefined in fast-myers-diff-0.0.2 · Myers.Diff"PolyDiff"
"Myers.Diff"
"fast-myers-diff-0.0.2-1YSHkYt9JS1IHTaFizuMGW"
'False) (C1 ('MetaCons"First"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: (C1 ('MetaCons"Second"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 b)) :+: C1 ('MetaCons"Both"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 b))))
String diff
You probably want to use getTextDiff with packed strings instead, but this function doesn't have the roundtripping problem that getTextDiff has.
Grouped String diff
Like getStringDiff but with entire strings instead of individual characters.
Diff two Vectors
Prefer getGroupedVectorDiff for performance reasons.
Diff two Vectors with grouped results
Diff two Vectors with different types using a custom equality operator
Prefer getGroupedVectorDiffBy for performance reasons.
Diff two Vectors with grouped results using a custom equality operator
Distance
'Text edit distance
String edit distance
Compute the total size of the edit script vector from 'getEditScript.
Compute the total size of the edit script vector from getEditScriptBy.
Internals
Compute a diff using an edit script.
Prefer computeGroupedDiffFromEditScript for performance reasons.
Compute a diff using an edit script.
Prefer computeGroupedDiffFromEditScript for performance reasons.
Backwards compatibility with Diff
For backward compatibility with Diff, use more specific functions if you can.
For backward compatibility with Diff, use more specific functions if you can.
For backward compatibility with Diff, use more specific functions if you can.
For backward compatibility with Diff, use more specific functions if you can.