From acab64cc0f21c0ee9fc5b9b08b60e08997818222 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 10 Sep 2022 22:10:01 +0100 Subject: Preparing constant folding --- app/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit v1.2.3