diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2015-02-11 20:53:53 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2015-02-11 20:53:53 -0500 |
commit | 5327831bd7a70e35e4fbd46dbf9301b716021fbb (patch) | |
tree | fe193e27264ac194e64d1413d8a1d3a90d92caa8 /src/Main.hs | |
parent | a5647e17247232f8cb05379ce046142248810f31 (diff) |
Write weave
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index bf81ae2..814e26f 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -30,7 +30,9 @@ main = do _ -> usage >> exitFailure case parsed of Left err -> print err >> exitFailure - Right ok -> print $ tangle ok + Right result -> case weave result of + Left err -> print err >> exitFailure + Right ok -> putStrLn ok usage :: IO () usage = putStrLn "usage: lyt [file]" |