-
Notifications
You must be signed in to change notification settings - Fork 237
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
Can't compile project that uses plugins with GHC 9.8.1 #2155
Comments
@hamishmack Any thoughts? Seems like a systemic issue with 9.8.1 and plugins when using haskell.nix. There is a test saying "TODO: Remove once polysemy works with ghc. 9.8.1" but I think that was a mistake and the test fails due to a bug in haskell.nix somewhere. |
I added
I wasn't able to re-create at the CLI (going to the builder directory and running that command produced nonsense) but seems like there should be more flags passed? |
It was not a mistake, but polysemy should be compatible now. |
The |
🤔 If that test passes in CI, I'm going to be very confused. It would not pass for me locally. I pulled your PR, commented out all the tests but "plugin" and ran |
It looks like ghc 9.8.1 changed the boot packages to be If you need a work around you may be able to |
I applied those fixes (and pushed to my demo repo) and can confirm my tests now pass under 9.6.4 and 9.8.1. Thank you! |
This template is a guide only, feel free add or omit sections as appropriate.
Describe the bug
haskell.nix seems unable to compile a project using the
polysemy-plugin
with 9.8.1, but the same project can be built with cabal (using GHC installed via ghcup).I am using MacOS Sonoma (14.2.1).
Steps To Reproduce
The repo at https://github.com/m4dc4p/haskell-nix-9.8 reproduces the problem.
To reproduce, run
nix-build
. Eventually, compilation will fail with the error:Using
cabal build
(with a GHC installed via ghcup), the library does compile.Additional context
default.nix
takes acompiler-nix-name
argument, and the project does build successfully with 9.6. (nix-build --argstr compiler-nix-version ghc96
will show. that).Output for all three types of builds are included in the repo:
Note that I reproduced this bug with two plugins (first,
polysemy-plugin
, thenbreakpoint
) and the build failed in both cases.An earlier bug (#2096) mentioned this behavior only occurred when using
-fplugin
in the cabal file, but here it happens even when usingOPTIONS_GHC
in the source file.Here is the content of
haskell-nix-98.out
in case it helps:The text was updated successfully, but these errors were encountered: