diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-09-10 22:10:01 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-09-10 22:10:01 +0100 |
commit | acab64cc0f21c0ee9fc5b9b08b60e08997818222 (patch) | |
tree | 28c0c642050c57651a4495647c79f640f0446233 /app/Main.hs | |
parent | 95d1f3cca8696fea69956b260e8b5d16e9ab3ee3 (diff) | |
download | micro-lang-hs-acab64cc0f21c0ee9fc5b9b08b60e08997818222.tar.gz micro-lang-hs-acab64cc0f21c0ee9fc5b9b08b60e08997818222.zip |
Preparing constant folding
Diffstat (limited to 'app/Main.hs')
-rw-r--r-- | app/Main.hs | 2 |
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 |