mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
Monadically
This commit is contained in:
parent
61b65533ef
commit
55666a5586
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user