diff-gestalt-0.2.0.0: A diff algorithm based on recursive longest common substrings

Safe HaskellSafe
LanguageHaskell2010

Data.Algorithm.Diff.Gestalt

Synopsis

Documentation

diff :: Ord a => [a] -> [a] -> [Diff [a]] Source

Takes two lists and returns a list of differences between them, grouped into chunks.

>>> diff "tree" "there"
[Both "t" "t",Second "he",Both "re" "re",First "e"]