-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build problems with GHC 9.x #1749
Conversation
The GHC bindists changed the directory layout starting with version 9.
The rts package's haddock file is not shipped with GHC bindists.
This reverts commit 20085b2. Without this flag, the pkgdb files are not correctly modified and absolute paths to sandbox directories are referenced.
I created commit 20085b2 to fix following error:
The cause of this error is haskell/cabal#6984 . Looking back now, I think that unliftio-core package should not generate Paths module. |
Thank you @matsubara0507, for providing the context for the change and confirming that reverting that commit is OK. I am just wondering, haskell/cabal#6984 says "The PR first appeared in 3.6.2+0", so Cabal 3.6.0.0 should not be effected, right?! Does that mean we might see this problem in a later GHC version (read: with a newer Cabal version) again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks good!
🤔 I think that haskell/cabal#6984 first appeared in Cabal-v3.6.0.0 release.
This order is probably 0123...ABC...abc..., not created timestamp. |
To support the compilation with bazel. See tweag/rules_haskell#1749 (comment)
To support the compilation with bazel. See tweag/rules_haskell#1749
This PR integrates changes from the daml project which where deemed necessary when upgrading GHC to 9.0.2, see digital-asset/daml#12300
rts
package https://github.com/digital-asset/daml/blob/main/bazel_tools/haskell-rts-docs.patchNote, I did not want to change the default GHC version to 9.x yet, but I did run checks for 9.0.2 and 9.2.1 in branches https://github.com/tweag/rules_haskell/tree/fix-bindist-issues-9.2.1 and https://github.com/tweag/rules_haskell/tree/fix-bindist-issues-9.0.2:
Furthermore, this PR reverts commit 20085b2 because building the example with GHC 9.2.1 failed (https://github.com/tweag/rules_haskell/actions/runs/2414717193), and reverting the commit fixed the problem. ❗ cc @matsubara0507