[project @ 2002-09-18 10:51:01 by simonmar]
authorsimonmar <unknown>
Wed, 18 Sep 2002 10:51:02 +0000 (10:51 +0000)
committersimonmar <unknown>
Wed, 18 Sep 2002 10:51:02 +0000 (10:51 +0000)
commitfb1b5b0773c7efd0fba32e580afd91f99b9fcc89
tree28c0058970d482d3a6feacd5c34e4003dc842767
parent29e55dea299569979d4e73d64b709a97aaea36e8
[project @ 2002-09-18 10:51:01 by simonmar]
Fix up exception handling when reading an interface file, and make it
compile with 4.08.x again.

GhcExceptions weren't being caught by readIface, so an error when
reading an interface could be unintentionally fatal (errors should be
soft when reading the old interface file for the current module).
Also, the Interrupted exception should not be caught by readIface,
because we want ^C to behave as normal when reading interface files
(currently it causes an interface-file read error rather than
interrupting the whole compiler).

Some exception-related compatibility functions have been moved from
Util to Panic.
ghc/compiler/main/DriverMkDepend.hs
ghc/compiler/main/SysTools.lhs
ghc/compiler/rename/RnHiFiles.lhs
ghc/compiler/typecheck/TcRnTypes.lhs
ghc/compiler/utils/Panic.lhs
ghc/compiler/utils/Util.lhs