[Git][ghc/ghc][wip/jeltsch/more-efficient-home-unit-imports-finding] Change back the style of the comment of `any_home_import`
Wolfgang Jeltsch pushed to branch wip/jeltsch/more-efficient-home-unit-imports-finding at Glasgow Haskell Compiler / GHC Commits: 1f97e7a4 by Wolfgang Jeltsch at 2026-05-12T15:00:34+03:00 Change back the style of the comment of `any_home_import` - - - - - 1 changed file: - compiler/GHC/Unit/Finder.hs Changes: ===================================== compiler/GHC/Unit/Finder.hs ===================================== @@ -248,12 +248,10 @@ findImportedModuleNoHsc fc fopts ue home_module_name_providers_map mb_home_unit any_home_import :: IO FindResult any_home_import = foldr1 orIfNotFound $ home_import :| map home_pkg_import other_fopts - {- - Do not try to be smart and change this to `foldr orIfNotFound - home_import (map home_pkg_import other_fopts)`, as that would not be the - same. `home_import` is first because we need to first look within the - current unit before looking at the other units in order. - -} + -- Do not try to be smart and change this to `foldr orIfNotFound home_import + -- (map home_pkg_import other_fopts)`, as that would not be the same. + -- `home_import` is first because we need to first look within the current + -- unit before looking at the other units in order. pkg_import :: IO FindResult pkg_import = findExposedPackageModule fc fopts unit_state mod_name mb_pkg View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f97e7a4cbed9e3062da00b730e57fc0... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f97e7a4cbed9e3062da00b730e57fc0... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)