Commit e467354b authored by simonmar's avatar simonmar
Browse files

[project @ 2005-05-23 09:10:59 by simonmar]

interpter_run: add ">> return ()", to avoid GHCi trying to print
out (and evaluate) the result of Main.main.
parent 539e4e61
......@@ -661,7 +661,7 @@ def interpreter_run( name, way, extra_hc_opts, compile_only, top_mod ):
script.write('System.IO.hSetBuffering System.IO.stdout System.IO.LineBuffering\n')
# wrapping in GHC.TopHandler.runIO ensures we get the same output
# in the event of an exception as for the compiled program.
script.write('GHC.TopHandler.runIO Main.main\n')
script.write('GHC.TopHandler.runIO Main.main Prelude.>> Prelude.return ()\n')
script.close()
# figure out what to use for stdin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment