2 % (c) The AQUA Project, Glasgow University, 1994-1997
5 \section[GHCmain]{Module @GHCmain@}
8 module GHCmain( mainIO ) where
11 import {-# SOURCE #-} qualified Main -- for type of "Main.main"
15 mainIO :: IO () -- It must be of type (IO t) because that's what
16 -- the RTS expects. GHC doesn't check this, so
17 -- make sure this type signature stays!
18 mainIO = catch Main.main (\err -> error ("I/O error: "++showsPrec 0 err "\n"))