1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Hunks have offsets.

This commit is contained in:
Rob Rix 2015-12-18 08:05:23 -05:00
parent 1e1d6295da
commit 4d407e773f

View File

@ -5,7 +5,7 @@ import Diff
patch :: Diff a Info -> String -> String -> String
patch diff sourceA sourceB = mconcat $ hunks diff sourceA sourceB
data Hunk = Hunk [Line]
data Hunk = Hunk Int Int [Line]
data Line = Insert String | Delete String | Context String
hunks :: Diff a Info -> String -> String -> [String]