Main now prints the exit code of the program, as Haskell likes to hide segfaults.

This commit is contained in:
Samuel Hammersberg 2023-03-30 12:37:24 +02:00
parent b3525db7fd
commit 9b38c6d804

View file

@ -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