1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Stub in split diff rendering.

This commit is contained in:
Rob Rix 2015-12-01 11:33:16 -05:00
parent 226dc1e966
commit 8600d7d71b
2 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import Diff
import Interpreter
import Patch
import Syntax
import Split
import Term
import Unified
import Control.Comonad.Cofree
@ -74,7 +75,7 @@ main = do
let diff = interpret comparable aTerm bTerm in
case output arguments of
Unified -> unified diff aContents bContents
Split -> return mempty
Split -> split diff aContents bContents
ByteString.putStr output where
opts = info (helper <*> arguments)
(fullDesc <> progDesc "Diff some things" <> header "semantic-diff - diff semantically")

View File

@ -1 +1,7 @@
module Split where
import Diff
import Rainbow
split :: Diff a Info -> String -> String -> IO ByteString
split diff a b = return mempty