1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Monadically

This commit is contained in:
Matt Diephouse 2016-01-14 15:13:26 -05:00
parent 61b65533ef
commit 55666a5586

View File

@ -59,9 +59,7 @@ diff = interpret comparable
-- | Print a diff, given the command-line arguments, source files, and terms.
printDiff :: Arguments -> Renderer T.Text (IO ())
printDiff arguments diff sources = case format arguments of
Unified -> do
rendered <- unified diff sources
B1.putStr rendered
Unified -> B1.putStr =<< unified diff sources
Split -> do
rendered <- split diff sources
case output arguments of