Commit 731afdc8 authored by batterseapower's avatar batterseapower
Browse files

Make compilation of hscRnImportDecls conditional: fixes stage1 build

parent 1ecf3fd2
...@@ -58,8 +58,8 @@ module HscMain ...@@ -58,8 +58,8 @@ module HscMain
, hscParseIdentifier , hscParseIdentifier
, hscTcRcLookupName , hscTcRcLookupName
, hscTcRnGetInfo , hscTcRnGetInfo
, hscRnImportDecls
#ifdef GHCI #ifdef GHCI
, hscRnImportDecls
, hscGetModuleExports , hscGetModuleExports
, hscTcRnLookupRdrName , hscTcRnLookupRdrName
, hscStmt, hscStmtWithLocation , hscStmt, hscStmtWithLocation
...@@ -294,7 +294,6 @@ hscTcRnGetInfo hsc_env name = ...@@ -294,7 +294,6 @@ hscTcRnGetInfo hsc_env name =
hscGetModuleExports :: HscEnv -> Module -> IO (Maybe [AvailInfo]) hscGetModuleExports :: HscEnv -> Module -> IO (Maybe [AvailInfo])
hscGetModuleExports hsc_env mdl = hscGetModuleExports hsc_env mdl =
runHsc hsc_env $ ioMsgMaybe' $ getModuleExports hsc_env mdl runHsc hsc_env $ ioMsgMaybe' $ getModuleExports hsc_env mdl
#endif
-- ----------------------------------------------------------------------------- -- -----------------------------------------------------------------------------
-- | Rename some import declarations -- | Rename some import declarations
...@@ -312,6 +311,8 @@ hscRnImportDecls hsc_env this_mod import_decls ...@@ -312,6 +311,8 @@ hscRnImportDecls hsc_env this_mod import_decls
= runHsc hsc_env $ ioMsgMaybe $ initTc hsc_env HsSrcFile False this_mod $ = runHsc hsc_env $ ioMsgMaybe $ initTc hsc_env HsSrcFile False this_mod $
fmap tcg_rdr_env $ tcRnImports hsc_env this_mod import_decls fmap tcg_rdr_env $ tcRnImports hsc_env this_mod import_decls
#endif
-- ----------------------------------------------------------------------------- -- -----------------------------------------------------------------------------
-- | parse a file, returning the abstract syntax -- | parse a file, returning the abstract syntax
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment