summaryrefslogtreecommitdiff
path: root/main.hs
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-23 20:38:30 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-23 20:38:30 +0100
commit285847e5e404bea2941f1ce4b15fb3c8c27993c2 (patch)
tree2f323f80900f8178b0971150a4b7f51aac285478 /main.hs
parentfbed3a4b44823256f17c6a4473e0ec3f63792be6 (diff)
Code now typechecks
Diffstat (limited to 'main.hs')
-rw-r--r--main.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.hs b/main.hs
index e1b975a..962a01d 100644
--- a/main.hs
+++ b/main.hs
@@ -33,6 +33,7 @@ main = do
when (isLeft parseResult) $ dieShow $ fromLeft parseResult
let ast = fromRight parseResult
- pprint ast
+ -- print ast
+ putStrLn $ pshow ast
either die print $ codegen ast "Module" fname