summaryrefslogtreecommitdiff
path: root/compiler/main/StaticFlags.hs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-01-30 14:17:38 +0000
committerIan Lynagh <ian@well-typed.com>2013-01-30 17:43:45 +0000
commita0c3263435a2d30c23c026dca6dd8b347ea5d263 (patch)
tree72d3b3ab15b7bd1ff1647874531afd5f5b0317b9 /compiler/main/StaticFlags.hs
parent0a1b7cb85fac3988ae625ba8bb491de81c39bfdc (diff)
downloadhaskell-a0c3263435a2d30c23c026dca6dd8b347ea5d263.tar.gz
Change a few throwGhcException uses to throwGhcExceptionIO
Diffstat (limited to 'compiler/main/StaticFlags.hs')
-rw-r--r--compiler/main/StaticFlags.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main/StaticFlags.hs b/compiler/main/StaticFlags.hs
index 76845644e0..c982d14b33 100644
--- a/compiler/main/StaticFlags.hs
+++ b/compiler/main/StaticFlags.hs
@@ -89,10 +89,10 @@ parseStaticFlagsFull :: [Flag IO] -> [Located String]
-> IO ([Located String], [Located String])
parseStaticFlagsFull flagsAvailable args = do
ready <- readIORef v_opt_C_ready
- when ready $ throwGhcException (ProgramError "Too late for parseStaticFlags: call it before newSession")
+ when ready $ throwGhcExceptionIO (ProgramError "Too late for parseStaticFlags: call it before newSession")
(leftover, errs, warns) <- processArgs flagsAvailable args
- when (not (null errs)) $ throwGhcException $ errorsToGhcException errs
+ when (not (null errs)) $ throwGhcExceptionIO $ errorsToGhcException errs
-- see sanity code in staticOpts
writeIORef v_opt_C_ready True