1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 00:42:33 +03:00

Ditto for the field.

This commit is contained in:
Rob Rix 2015-12-15 23:24:04 -05:00
parent d174a0c8c8
commit 6b61950e6e

View File

@ -18,7 +18,7 @@ import System.FilePath
data Renderer = Unified | Split
data Argument = Argument { output :: Renderer, sourceA :: FilePath, sourceB :: FilePath }
data Argument = Argument { renderer :: Renderer, sourceA :: FilePath, sourceB :: FilePath }
arguments :: Parser Argument
arguments = Argument
@ -38,7 +38,7 @@ main = do
bTerm <- parse bContents
return (replaceLeavesWithWordBranches aContents aTerm, replaceLeavesWithWordBranches bContents bTerm)
let diff = interpret comparable aTerm bTerm in
case output arguments of
case renderer arguments of
Unified -> do
output <- unified diff aContents bContents
B1.putStr output