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