Wolfgang Jeltsch pushed to branch wip/jeltsch/more-efficient-home-unit-imports-finding at Glasgow Haskell Compiler / GHC Commits: 382247a8 by Wolfgang Jeltsch at 2026-04-28T21:57:16+03:00 Replace a boolean `case` by an `if` - - - - - 1 changed file: - compiler/GHC/Unit/Finder.hs Changes: ===================================== compiler/GHC/Unit/Finder.hs ===================================== @@ -253,9 +253,9 @@ findImportedModuleNoHsc fc fopts ue home_module_name_providers_map mb_home_unit hpt_deps = homeUnitDepends units -- TODO: this predicate is wrong, we need something more focused - sorted_deps = case finder_lookupHomeInterfaces fopts of - True -> Set.toList hpt_deps - False -> sortHomeUnitsByLikelihoodFor home_module_name_providers_map mb_home_unit_id mod_name hpt_deps + sorted_deps = if finder_lookupHomeInterfaces fopts + then Set.toList hpt_deps + else sortHomeUnitsByLikelihoodFor home_module_name_providers_map mb_home_unit_id mod_name hpt_deps other_fopts = [ (uid, initFinderOpts (homeUnitEnv_dflags (ue_findHomeUnitEnv uid ue))) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/382247a829cd8bb8608b1ad1f0a58e38... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/382247a829cd8bb8608b1ad1f0a58e38... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)