Wolfgang Jeltsch pushed to branch wip/jeltsch/more-efficient-home-unit-imports-finding at Glasgow Haskell Compiler / GHC
Commits:
-
5b81d2ca
by Wolfgang Jeltsch at 2026-05-12T14:39:22+03:00
1 changed file:
Changes:
| ... | ... | @@ -230,12 +230,10 @@ findImportedModuleNoHsc fc fopts ue home_module_name_providers_map mb_home_unit |
| 230 | 230 | Nothing -> pure $
|
| 231 | 231 | NoPackage (panic "findImportedModule: no home-unit")
|
| 232 | 232 | |
| 233 | - {-
|
|
| 234 | - If the module is reexported, then look for it as if it was from the
|
|
| 235 | - perspective of that package which reexports it.
|
|
| 236 | - -}
|
|
| 237 | 233 | home_pkg_import :: (UnitId, FinderOpts) -> IO FindResult
|
| 238 | 234 | home_pkg_import (uid, opts)
|
| 235 | + -- If the module is reexported, then look for it as if it was from the
|
|
| 236 | + -- perspective of that package which reexports it.
|
|
| 239 | 237 | | Just real_mod_name
|
| 240 | 238 | <- lookupUniqMap (finder_reexportedModules opts) mod_name
|
| 241 | 239 | = findImportedModuleNoHsc fc opts ue home_module_name_providers_map
|