[project @ 2005-05-31 12:45:03 by simonmar]
authorsimonmar <unknown>
Tue, 31 May 2005 12:45:04 +0000 (12:45 +0000)
committersimonmar <unknown>
Tue, 31 May 2005 12:45:04 +0000 (12:45 +0000)
commitaa6eb36c83abca09f428609bf1742af376589b5a
tree69b38e1c4e546e0defc1fc5ef8fadfd3d7d97bbd
parent004ed82c3656d33cf08ef1ed006eb13ad20b8cce
[project @ 2005-05-31 12:45:03 by simonmar]
Fix some reporting of errors in the GHC API: errors during the
downsweep were thrown as exceptions; now they're reported via the
(Messages->IO ()) callback in the same way as other errors.

getModuleInfo no longer prints anything on stdout.  It does ignore
error messages and return Nothing, however - we should fix this and
return the error messages at some point.

The ErrMsg type can now be thrown as an exception.  This can be a
convenient alternative if collecting multiple error messages isn't
required.  We do this in the downsweep now.
ghc/compiler/main/ErrUtils.lhs
ghc/compiler/main/GHC.hs
ghc/compiler/main/GetImports.hs
ghc/compiler/typecheck/TcRnDriver.lhs