summaryrefslogtreecommitdiff
path: root/compiler/main/SysTools.lhs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-01-30 14:06:53 +0000
committerIan Lynagh <ian@well-typed.com>2013-01-30 17:43:44 +0000
commit0a1b7cb85fac3988ae625ba8bb491de81c39bfdc (patch)
tree4359f4a73d3eb7e608707f01e1f049fe357b4482 /compiler/main/SysTools.lhs
parent1bb4913c3c9b1942c014475e38f2f8cf8b61be68 (diff)
downloadhaskell-0a1b7cb85fac3988ae625ba8bb491de81c39bfdc.tar.gz
Change a few throwGhcException uses to throwGhcExceptionIO
Diffstat (limited to 'compiler/main/SysTools.lhs')
-rw-r--r--compiler/main/SysTools.lhs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs
index 28ff49969d..e648481cd3 100644
--- a/compiler/main/SysTools.lhs
+++ b/compiler/main/SysTools.lhs
@@ -353,7 +353,7 @@ findTopDir Nothing
maybe_exec_dir <- getBaseDir
case maybe_exec_dir of
-- "Just" on Windows, "Nothing" on unix
- Nothing -> throwGhcException (InstallationError "missing -B<dir> option")
+ Nothing -> throwGhcExceptionIO (InstallationError "missing -B<dir> option")
Just dir -> return dir
\end{code}
@@ -837,14 +837,14 @@ handleProc pgm phase_name proc = do
-- the case of a missing program there will otherwise be no output
-- at all.
| n == 127 -> does_not_exist
- | otherwise -> throwGhcException (PhaseFailed phase_name rc)
+ | otherwise -> throwGhcExceptionIO (PhaseFailed phase_name rc)
where
handler err =
if IO.isDoesNotExistError err
then does_not_exist
else IO.ioError err
- does_not_exist = throwGhcException (InstallationError ("could not execute: " ++ pgm))
+ does_not_exist = throwGhcExceptionIO (InstallationError ("could not execute: " ++ pgm))
builderMainLoop :: DynFlags -> (String -> String) -> FilePath
@@ -976,7 +976,7 @@ traceCmd dflags phase_name cmd_line action
where
handle_exn _verb exn = do { debugTraceMsg dflags 2 (char '\n')
; debugTraceMsg dflags 2 (ptext (sLit "Failed:") <+> text cmd_line <+> text (show exn))
- ; throwGhcException (PhaseFailed phase_name (ExitFailure 1)) }
+ ; throwGhcExceptionIO (PhaseFailed phase_name (ExitFailure 1)) }
\end{code}
%************************************************************************