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 /utils | |
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 'utils')
-rw-r--r-- | utils/ghctags/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/ghctags/Main.hs b/utils/ghctags/Main.hs index a25537ee99..b3ed58f327 100644 --- a/utils/ghctags/Main.hs +++ b/utils/ghctags/Main.hs @@ -10,6 +10,7 @@ import DriverPhases ( isHaskellSrcFilename ) import HscTypes ( msHsFilePath ) import Name ( getOccString ) --import ErrUtils ( printBagOfErrors ) +import Panic ( panic ) import DynFlags ( defaultDynFlags ) import Bag import Exception @@ -100,7 +101,7 @@ main = do then Just `liftM` openFile "TAGS" openFileMode else return Nothing - GHC.defaultErrorHandler defaultDynFlags $ + GHC.defaultErrorHandler (defaultDynFlags (panic "No settings")) $ runGhc (Just ghc_topdir) $ do --liftIO $ print "starting up session" dflags <- getSessionDynFlags |