GlobalRdrEnv, LocalRdrEnv, NameCache, FixityEnv,
GhciMode, lookupType, unQualInScope )
import TcRnTypes
-import Module ( Module, foldModuleEnv )
+import Module ( Module, moduleName, foldModuleEnv )
import Name ( Name, isInternalName )
import Type ( Type )
import NameEnv ( extendNameEnvList )
tcg_ist = mkImpTypeEnv eps hpt,
tcg_inst_env = mkImpInstEnv dflags eps hpt,
tcg_exports = [],
- tcg_imports = emptyImportAvails,
+ tcg_imports = init_imports,
tcg_binds = EmptyMonoBinds,
tcg_deprecs = NoDeprecs,
tcg_insts = [],
where
eps = pcs_EPS pcs
+ init_imports = mkImportAvails (moduleName mod) True []
+ -- Initialise tcg_imports with an empty set of bindings for
+ -- this module, so that if we see 'module M' in the export
+ -- list, and there are no bindings in M, we don't bleat
+ -- "unknown module M".
+
+
defaultDefaultTys :: [Type]
defaultDefaultTys = [integerTy, doubleTy]