Commit eafae362 authored by Austin Seipp's avatar Austin Seipp
Browse files

Remove outdated comment (#8434)


Authored-by: errge's avatarGergely Risko <gergely@risko.hu>
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent 9fb30cbc
...@@ -244,15 +244,7 @@ tcRnImports hsc_env this_mod import_decls ...@@ -244,15 +244,7 @@ tcRnImports hsc_env this_mod import_decls
= do { (rn_imports, rdr_env, imports, hpc_info) <- rnImports import_decls ; = do { (rn_imports, rdr_env, imports, hpc_info) <- rnImports import_decls ;
; let { dep_mods :: ModuleNameEnv (ModuleName, IsBootInterface) ; let { dep_mods :: ModuleNameEnv (ModuleName, IsBootInterface)
-- Make sure we record the dependencies from the DynFlags in the EPS or we ; dep_mods = imp_dep_mods imports
-- end up hitting the sanity check in LoadIface.loadInterface that
-- checks for unknown home-package modules being loaded. We put
-- these dependencies on the left so their (non-source) imports
-- take precedence over the (possibly-source) imports on the right.
-- We don't add them to any other field (e.g. the imp_dep_mods of
-- imports) because we don't want to load their instances etc.
; dep_mods = listToUFM [(mod_nm, (mod_nm, False)) | mod_nm <- dynFlagDependencies (hsc_dflags hsc_env)]
`plusUFM` imp_dep_mods imports
-- We want instance declarations from all home-package -- We want instance declarations from all home-package
-- modules below this one, including boot modules, except -- modules below this one, including boot modules, except
......
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