From: ken Date: Fri, 3 Aug 2001 23:38:50 +0000 (+0000) Subject: [project @ 2001-08-03 23:38:50 by ken] X-Git-Tag: Approximately_9120_patches~1363 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=b17957ce78ec9ac16db7bba2b20b29548d5ca1db;p=ghc-hetmet.git [project @ 2001-08-03 23:38:50 by ken] Fixed: ExitException doesn't exist in __GLASGOW_HASKELL__ < 501, so references to ExitException should be preprocessed out. --- diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index 930735e..5a7d6c5 100644 --- a/ghc/compiler/main/Main.hs +++ b/ghc/compiler/main/Main.hs @@ -1,6 +1,6 @@ {-# OPTIONS -fno-warn-incomplete-patterns #-} ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.82 2001/08/03 20:40:43 sof Exp $ +-- $Id: Main.hs,v 1.83 2001/08/03 23:38:50 ken Exp $ -- -- GHC Driver program -- @@ -115,8 +115,10 @@ main = case exception of -- an IO exception probably isn't our fault, so don't panic IOException _ -> hPutStr stderr (show exception) +#if __GLASGOW_HASKELL__ >= 501 -- let exit exceptions bubble all the way out. ExitException e -> exitWith e +#endif _other -> hPutStr stderr (show (Panic (show exception))) exitWith (ExitFailure 1) ) $ do