1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00
semantic/src/PatchOutput.hs

13 lines
334 B
Haskell
Raw Normal View History

2015-12-18 01:22:09 +03:00
module PatchOutput where
2015-12-18 01:22:53 +03:00
import Diff
patch :: Diff a Info -> String -> String -> String
patch diff sourceA sourceB = mconcat $ hunks diff sourceA sourceB
2015-12-18 16:05:23 +03:00
data Hunk = Hunk Int Int [Line]
2015-12-18 16:04:40 +03:00
data Line = Insert String | Delete String | Context String
hunks :: Diff a Info -> String -> String -> [String]
hunks diff sourceA sourceB = []