From 9b38c6d8046b044b47cdc232f8bf809318c1366b Mon Sep 17 00:00:00 2001 From: Samuel Hammersberg Date: Thu, 30 Mar 2023 12:37:24 +0200 Subject: [PATCH] Main now prints the exit code of the program, as Haskell likes to hide segfaults. --- src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.hs b/src/Main.hs index 97d75e8..a6337bf 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -135,7 +135,7 @@ main' opts s = do compile generatedCode printToErr "Compilation done!" printToErr "\n-- Program output --" - spawnWait "./output/hello_world" + print =<< spawnWait "./output/hello_world" exitSuccess