Modulefast-myers-diff-0.0.1Haskell2010
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.
- 3 types
- 15 values
- Packagefast-myers-diff-0.0.1
- Exports18
- LanguageHaskell2010
- LicenceMIT
- SourceDiff.hs
Diffing
9 declarationsInstances5Eq, Show, Generic, NFData, Rep
(Eq a, Eq b) => Eq (PolyDiff a b)Defined in fast-myers-diff-0.0.1 · Myers.Diff(Show a, Show b) => Show (PolyDiff a b)Defined in fast-myers-diff-0.0.1 · Myers.DiffGeneric (PolyDiff a b)Defined in fast-myers-diff-0.0.1 · Myers.Diff(NFData a, NFData b) => NFData (PolyDiff a b)Defined in fast-myers-diff-0.0.1 · Myers.Difftype Rep (PolyDiff a b) = D1 ('MetaDataDefined in fast-myers-diff-0.0.1 · Myers.Diff"PolyDiff"
"Myers.Diff"
"fast-myers-diff-0.0.1-3MPo4fg6a86Ip7ra8LxboM"
'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
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.