wrap Main.main in GHC.TopHandler.runIOFastExit
authorSimon Marlow <simonmar@microsoft.com>
Fri, 5 Jan 2007 11:46:08 +0000 (11:46 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 5 Jan 2007 11:46:08 +0000 (11:46 +0000)
commit7afd995197924dc6d650b51e160755d651ad1e0d
treea614897f44fb933b8af3430dcad5aa55a42e1fed
parentf4b8374442162769ea87c24bf90a0f86a2fdd9b7
wrap Main.main in GHC.TopHandler.runIOFastExit
This is so that exceptions raised by Main.main do exactly the same
thing as they would in a compiled program, including writing the
message to stderr and shutting down with the correct exit code.
utils/runghc/runghc.hs