X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FDriverMkDepend.hs;h=307e43f3147ecf1eb95e963b641a82df53c16f78;hb=aa9a4f1053d3c554629a2ec25955e7530c95b892;hp=1b3792e788111c69330da76662bf1167a0e42e8c;hpb=90c32262025049ae3013e8af1e9960756dace72d;p=ghc-hetmet.git diff --git a/compiler/main/DriverMkDepend.hs b/compiler/main/DriverMkDepend.hs index 1b3792e..307e43f 100644 --- a/compiler/main/DriverMkDepend.hs +++ b/compiler/main/DriverMkDepend.hs @@ -33,7 +33,6 @@ import FastString import ErrUtils ( debugTraceMsg, putMsg ) -import Control.Exception import System.Exit ( ExitCode(..), exitWith ) import System.Directory import System.FilePath @@ -171,7 +170,7 @@ processDeps :: DynFlags processDeps _ _ _ _ (CyclicSCC nodes) = -- There shouldn't be any cycles; report them - throwDyn (ProgramError (showSDoc $ GHC.cyclicModuleErr nodes)) + ghcError (ProgramError (showSDoc $ GHC.cyclicModuleErr nodes)) processDeps dflags session excl_mods hdl (AcyclicSCC node) = do { hsc_env <- GHC.sessionHscEnv session