X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2FMain.hs;h=bdf9e63e43e6d2e1e6bb3e095286858e4b70fafe;hb=1d141bd52e6eea321e90cd11059f726094dd50be;hp=06a5cebd921b29f4be50625bd47604564638c390;hpb=1246293616fc45787ecaed13aa31a2555510f7e3;p=ghc-hetmet.git diff --git a/ghc/Main.hs b/ghc/Main.hs index 06a5ceb..bdf9e63 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -10,13 +10,12 @@ module Main (main) where -#include "HsVersions.h" - -- The official GHC API import qualified GHC import GHC ( DynFlags(..), HscTarget(..), GhcMode(..), GhcLink(..), - LoadHowMuch(..), dopt, DynFlag(..) ) + LoadHowMuch(..), dopt, DynFlag(..), + defaultCallbacks ) import CmdLineParser -- Implementations of the various modes (--show-iface, mkdependHS. etc.) @@ -515,7 +514,7 @@ doMake srcs = do doShowIface :: DynFlags -> FilePath -> IO () doShowIface dflags file = do - hsc_env <- newHscEnv dflags + hsc_env <- newHscEnv defaultCallbacks dflags showIface hsc_env file -- ---------------------------------------------------------------------------