-
Notifications
You must be signed in to change notification settings - Fork 20
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
GHC 9.2 support #272
base: main
Are you sure you want to change the base?
GHC 9.2 support #272
Conversation
I don't think it's polite to pin a nightly if an lts will do, so I don't want to make this change permanent.
the error message recommends deleting the 'return' definition, so I did. It is safe to do so because their definition was equivalent to @return = pure@.
looks like PolyKinds is on by default now. Not sure why it's causing issues in this module, but these type variables are definitely intended to have kind *. Maybe it would have been better to use a kind annotation?
According to commercialhaskell/stackage#6486 (comment), haskell-awk has been dropped from nightly because it doesn't compile with ghc-9.2.2, so we need to support that version in order to get back into stackage. |
The
This is presumably https://gitlab.haskell.org/ghc/ghc/-/issues/19452, which in turn means CI is caching files generated from one version of ghc and regenerating them when building with another version of ghc. But that doesn't make sense, because
Hmm, what else could explain this error message? |
CI failed with @Prelude.chr: bad argument@, which usually means that one version of ghc is trying to load a file compiled with another version of ghc. CI is compiling the code with multiple versions of ghc... but it's supposed to be using separate caches! Let's disable the cache to clarify whether caching is involved or not.
Same error without the CI cache, so it's indeed something else. I can reproduce locally with |
I get the same result with both the newest (stack-2.7.5) and oldest (stack-2.5.1) versions of stack supported by ghcup. ghcup only started installing stack relatively recently, so maybe I need to pick an even older version; or maybe the problem is not the version of stack at all. Hard to tell, with such an obscure error message! |
Did the version of stack change? I pretty sure I can build my projects with all ghc-8.x using stack-2.7 though. |
Sounds plausible! We do not specify the stack-version parameter, so the |
Ya, I am not sure what is going on: I see it is using Ubuntu 20.04: unfortunately older CI logs seem to have been already gc'ed... I have definitely run into problems in the past here with ghc 7.10: ghc-8.0 is already getting a bit old I suppose. |
Experimenting further, |
The What else could it be then? |
No description provided.