-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Build failure in Haskell libraries using -fplugin flag #302464
Comments
That’s unsatisfying and maybe something we should have a regression test for. |
Looks like this is haskell/cabal#9375, an issue with cabal that's fixed in 3.10.3.0 (GHC 9.10). I don't know how we work around it. See also commercialhaskell/stack#6251 |
@ncfavier There is this haskell/cabal#9384 PR that should fix it. haskell.nix seem to use it too input-output-hk/haskell.nix#2101 |
Adding an alternative |
It should be applied to GHC 9.6-9.9, only 9.10 got it fixed. |
@Diamondy4 such patches would need to be applied to the respective GHC derivation. Core libs are bundled with GHC. |
@Diamondy4 9.6 is fixed since it got a release with the new cabal library. 9.8.3 is also on the radar but afaiu 9.10.2 and 9.12.1 are higher priority |
@MangoIV So our hope is, that 9.8.3 comes before stackage LTS switches to GHC 9.8? |
I doubt that stackage is going to switch any time earlier as stack is affected by this as well. |
But yeah, I think it would be problematic and we really need 9.8.3. I’ll comment under the issue. |
Worst case is we have to patch our ghc, which is also not that bad? |
Describe the bug
Build failure on
installPhase
on projects that use-fplugin=Some.Plugin.Module.Here
flag in library'sghc-options
.Appeared after recent haskellPackages update that bumped default GHC to 9.6.
cabal build
insideshellFor
shell still working.Failure log
Minimal failing example here.
Same example but on pre-default GHC 9.6 nixpkgs commit builds successfully with default GHC 9.4.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful build as it was before recent haskell-updates merge (before default GHC 9.6)
Additional context
Tested with effectful-plugin and ghc-typelits-natnormalise.
Notify maintainers
@NixOS/haskell @ncfavier @cdepillabout @expipiplus1 @maralorn @sternenseemann
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: