[Git][ghc/ghc][wip/sv/T25246-b] Temp workaround
Sjoerd Visscher (@trac-sjoerd_visscher)
gitlab at gitlab.haskell.org
Thu Oct 17 09:14:14 UTC 2024
Sjoerd Visscher pushed to branch wip/sv/T25246-b at Glasgow Haskell Compiler / GHC
Commits:
1fbb3a00 by Sjoerd Visscher at 2024-10-17T11:14:08+02:00
Temp workaround
- - - - -
1 changed file:
- compiler/GHC/Unit/Finder.hs
Changes:
=====================================
compiler/GHC/Unit/Finder.hs
=====================================
@@ -462,7 +462,7 @@ findInstalledHomeModule fc fopts home_unit gwib at GWIB { gwib_mod = mod_name, gwib
-- This is important only when compiling the base package (where GHC.Prim
-- is a home module).
if mod `installedModuleEq` gHC_PRIM
- then return (InstalledFound (error "GHC.Prim ModLocation"))
+ then return (InstalledFound OsPathModLocation{}) -- (error "GHC.Prim ModLocation"))
else searchPathExts search_dirs mod exts
-- | Prepend the working directory to the search path.
@@ -495,7 +495,7 @@ findPackageModule_ fc fopts gwib at GWIB { gwib_mod = mod } pkg_conf = do
-- special case for GHC.Prim; we won't find it in the filesystem.
if mod `installedModuleEq` gHC_PRIM
- then return (InstalledFound (error "GHC.Prim ModLocation"))
+ then return (InstalledFound OsPathModLocation{}) -- (error "GHC.Prim ModLocation"))
else
let
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1fbb3a00063b75706effc83628699358f0f9b300
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1fbb3a00063b75706effc83628699358f0f9b300
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241017/9b40f379/attachment-0001.html>
More information about the ghc-commits
mailing list