mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
Define runDiff by composition.
This commit is contained in:
parent
2cce3dd671
commit
17af42e21e
@ -37,9 +37,7 @@ main = do
|
|||||||
writeToOutput = maybe B.putStr B.writeFile
|
writeToOutput = maybe B.putStr B.writeFile
|
||||||
|
|
||||||
runDiff :: SomeRenderer DiffRenderer -> Either Handle [Both (FilePath, Maybe Language)] -> IO ByteString
|
runDiff :: SomeRenderer DiffRenderer -> Either Handle [Both (FilePath, Maybe Language)] -> IO ByteString
|
||||||
runDiff (SomeRenderer diffRenderer) from = do
|
runDiff (SomeRenderer diffRenderer) = Task.runTask . Semantic.diffBlobPairs diffRenderer <=< readBlobPairs
|
||||||
blobs <- readBlobPairs from
|
|
||||||
Task.runTask (Semantic.diffBlobPairs diffRenderer blobs)
|
|
||||||
|
|
||||||
data ParseMode = ParseStdin | ParsePaths [(FilePath, Maybe Language)]
|
data ParseMode = ParseStdin | ParsePaths [(FilePath, Maybe Language)]
|
||||||
deriving Show
|
deriving Show
|
||||||
|
Loading…
Reference in New Issue
Block a user