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? |
aherrmann
left a comment
There was a problem hiding this comment.
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
rtspackage 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