Skip to content

Fix #404 Accommodate ${pkgroot} and tolerate GHC errors on Windows#405

Merged
Bodigrim merged 2 commits intondmitchell:masterfrom
mpilgrem:fix404
Nov 24, 2025
Merged

Fix #404 Accommodate ${pkgroot} and tolerate GHC errors on Windows#405
Bodigrim merged 2 commits intondmitchell:masterfrom
mpilgrem:fix404

Conversation

@mpilgrem
Copy link
Contributor

@mpilgrem mpilgrem commented Jun 4, 2023

CPP is used (sorry) to tailor for Windows and GHC >= 9.0. In that case, ${pkgroot} is not expanded and the bogus prefix is stripped.

Otherwise, ${pkgroot} is expanded. For compatibility with GHC < 9.0, $topdir is still stripped, if present.

I confirm I am licensing my contribution under all licenses that apply to this project (see LICENSE) and that I have no patents covering my contribution.

@hololeap
Copy link

hololeap commented Aug 9, 2024

I can confirm this fixes #420 on ghc-9.4.8 (gentoo linux)

@LightAndLight
Copy link

Anything stopping this from being merged? On the affected GHC versions, links to core library definitions are broken in local Hoogle.

@mpilgrem mpilgrem force-pushed the fix404 branch 2 times, most recently from ce6312b to 54b55ff Compare November 4, 2025 21:42
@mpilgrem
Copy link
Contributor Author

mpilgrem commented Nov 4, 2025

@mpickering, sorry for the hiatus. I've taken account of your review.

@Bodigrim
Copy link
Collaborator

@mpilgrem could you please rebase?

…Windows

CPP is used to tailor for Windows and GHC >= 9.0. In that case, ${pkgroot} is not expanded and the bogus prefix is stripped.

Otherwise, ${pkgroot} is expanded. For compatibility with GHC < 9.0, $topdir is still stripped, if present.
@Bodigrim Bodigrim merged commit 44cf205 into ndmitchell:master Nov 24, 2025
5 checks passed
@Bodigrim
Copy link
Collaborator

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants