diff options
author | Ian Lynagh <igloo@earth.li> | 2011-04-22 00:21:23 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-04-22 00:51:47 +0100 |
commit | bfa0c2ed1e4cd07c7934901520cb04db6b79cd9d (patch) | |
tree | b89d0ecd4d0546273b3d4732c5eb2f69e4f1f60d /ghc | |
parent | e550494a8e6d28274fa124bdb10d4c7f40fe074b (diff) | |
download | haskell-bfa0c2ed1e4cd07c7934901520cb04db6b79cd9d.tar.gz |
Initialise Settings before DynFlags
Stops us having to temporarily have a panic in the DynFlags.
We still need a panic in the DynFlags used for the top-level
error handler, though.
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs index 15327f81bc..12d8dd202b 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -78,7 +78,8 @@ import Data.Maybe main :: IO () main = do hSetBuffering stdout NoBuffering - GHC.defaultErrorHandler defaultDynFlags $ do + let defaultErrorHandlerDynFlags = defaultDynFlags (panic "No settings") + GHC.defaultErrorHandler defaultErrorHandlerDynFlags $ do -- 1. extract the -B flag from the args argv0 <- getArgs |