{-# OPTIONS -#include "Linker.h" -#include "SchedAPI.h" #-}
-----------------------------------------------------------------------------
--- $Id: InteractiveUI.hs,v 1.102 2001/12/05 00:06:32 sof Exp $
+-- $Id: InteractiveUI.hs,v 1.103 2001/12/05 19:24:53 sof Exp $
--
-- GHC Interactive User Interface
--
import BasicTypes ( defaultFixity )
import Outputable
import CmdLineOpts ( DynFlag(..), getDynFlags, saveDynFlags, restoreDynFlags, dopt_unset )
-import Panic ( GhcException(..) )
+import Panic ( GhcException(..), showGhcException )
import Config
#ifndef mingw32_TARGET_OS
Nothing -> io (putStrLn ("*** Exception: (unknown)"))
Just Interrupted -> io (putStrLn "Interrupted.")
Just (CmdLineError s) -> io (putStrLn s) -- omit the location for CmdLineError
- Just ph@PhaseFailed{} -> io (putStrLn (showGhcException ph)) -- ditto
+ Just ph@PhaseFailed{} -> io (putStrLn (showGhcException ph "")) -- ditto
Just other_ghc_ex -> io (print other_ghc_ex)
showException other_exception
module Panic
(
GhcException(..), ghcError, progName,
- panic, panic#, assertPanic, trace
+ panic, panic#, assertPanic, trace,
+ showGhcException
) where
import Config