aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-10 22:10:01 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-10 22:10:01 +0100
commitacab64cc0f21c0ee9fc5b9b08b60e08997818222 (patch)
tree28c0c642050c57651a4495647c79f640f0446233 /app
parent95d1f3cca8696fea69956b260e8b5d16e9ab3ee3 (diff)
downloadmicro-lang-hs-acab64cc0f21c0ee9fc5b9b08b60e08997818222.tar.gz
micro-lang-hs-acab64cc0f21c0ee9fc5b9b08b60e08997818222.zip
Preparing constant folding
Diffstat (limited to 'app')
-rw-r--r--app/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs
index fb3c132..4a3128a 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -68,7 +68,7 @@ compileFile filename onlyParse = do
Left err -> hPutStrLn stderr (showParserError err) >> exitFailure
Right ast -> do
res <- return $ compile ast
- case crExit res of
+ case res of
Right out -> if onlyParse then exitSuccess else hPutStrLn stdout out
Left errs -> hPutStr stderr (showErrorList errs) >> exitFailure