summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-22 00:21:23 +0100
committerIan Lynagh <igloo@earth.li>2011-04-22 00:51:47 +0100
commitbfa0c2ed1e4cd07c7934901520cb04db6b79cd9d (patch)
treeb89d0ecd4d0546273b3d4732c5eb2f69e4f1f60d /utils
parente550494a8e6d28274fa124bdb10d4c7f40fe074b (diff)
downloadhaskell-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.hs3
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