-
-
Notifications
You must be signed in to change notification settings - Fork 389
Support for ghc-9.2.* #2179
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
Comments
The MR #2128 adds compat module hierarchy and functions compatible with the GHC API 9.2 in a backward compatible manner. With I think roughly 3 exceptions (which require some small changes), bringing basic support for ghc-9.2 is a matter of adding the appropriate imports, once retrie supports ghc-9.2. |
Looks like the next portion of this is dependent on support for 9.2 in retrie, which has a WIP that needs carried over the finish-line. |
as noted by @Ailrun here #297 (comment) |
How near are we to releasing 1.5.0, and would it include GHC-9.2.1 support? |
Hi, 1.5.0 will be released soon but i am afraid it will not include ghc-9.2.1 for sure, there is still lot of work to be done here |
Maybe at least include partial support??? (Assuming it can be done and makes sense) |
I am afraid that this is blocked on a ghcide change and ghcide is the core of hls so we cant release it even partially. |
Related PR: nikita-volkov/ptr-poker#7 (which is a dependency of jsonify, which is in turn of opentelemetry-extra) |
ghc-exactprint-1.3.0 has been released - that was the portion that was blocking retrie itself; the next step is to update retrie to use it, and then it can be used for HLS 9.2. There's a work-in-progress branch at https://github.com/alanz/retrie/tree/ghc-9.2 - it appears they're stuck on something related to fixity processing. |
@Dessix The branch is actually merged now. It's now the problem of release (However, even after that, we still have opentelemetry-extra issue) |
Looks like the retrie release went through.
|
Unfortunately, there wese mistakes in the PR and in a fix committed afterwards. This PR fixes those mistakes: nikita-volkov/ptr-poker#8 |
We don't really depend on |
Huh? then Why do I get issues from a transitive dependency of Oh, that was actually of our flake setting! Weird... is there any reason to use |
|
@pepeiborra: Thank you for the answer. I think, as both GHC 9.2 support of GHCIDE (probably not yet exhaustive): Main library
Testing
|
|
Awesome, let's wait how GHC 9.2 support goes in other repositories... |
We can use Edit: Oh I see that is what Pepe's branch does. |
It has a patch for
|
Because of haskell-primitive/primitive-unlifted#28 you need the following incantation: allow-newer:
primitive-unlifted:base,
allow-older:
primitive-extras:primitive-unlifted
constraints:
primitive-unlifted < 1 If the issue with GHC 9.2 support in |
I believe |
#2503 has been merged, as have |
HEAD already has experimental support for GHC 9.2 - just waiting for a release now. |
I've updated the issue description with a detailed check list tracking ghc-9.2.1 support |
If there are beginner friendly tasks for 9.2 support, I'd love to help out. |
@lilnasy
Not sure about retrie plugin neither, which needs support for retrie library (//cc @pepeiborra) |
Somewhat out of topic: what about 9.0.2? Stackage moved nightly to 9.0.2, but HLS is still 9.0.1-only. |
hlint-3.4 has just been released with support for ghc-9.2 https://hackage.haskell.org/package/hlint-3.4/changelog |
GHC 9.2.3 has just been released, so it might be the time to tackle it. |
#2732 (OverloadedRecordDot support) may be worth adding to the checklist, as the IDE gets somewhat confused with 9.2's new record syntax otherwise. |
Any word on GHC-9.2.3 support yet? It shouldn't be too different from 9.2.2 from the HLS point of view, I'd imagine? |
There's a PR for 9.2.3: #2936 |
Sorry this issue is outdated and i dont have time to keep up to date, please open a new one if you want to track support for newer versions of ghc-9.2 |
State of support
Has ghc-9.2.1 support
ghcide
haskell-language-server
hls-haddock-comments-plugin
hls-hlint-plugin
hls-pragmas-plugin
hls-retrie-plugin
without test, not included via flagshls-eval-plugin
hls-module-name-plugin
: it was not being tested in ci: see More work around next ghc-9.2.1 support #2587. Doesnt compile for ghc-9.2.1. Fixed with Fix module-name plugin on ghc-9.2.1 #2594hls-class-plugin
hls-refine-imports-plugin
: [ghc-9.2] Fix refine-imports plugin #2601hls-splice-plugin
hls-tactic-plugin
hls-explicit-imports-plugin
hls-call-hierarchy-plugin
it is being tested so it works but it is not included in hls via flags: see More work around next ghc-9.2.1 support #2587hls-alternate-number-format-plugin
hls-qualify-imported-names-plugin
: [ghc-9.2] Fix qualify-imported-names plugin #2600Formatters
hls-floskell-plugin
hls-ormolu-plugin
hls-fourmolu-plugin
hls-brittany-plugin
hls-stylish-haskell-plugin
Build system and CI
.github/workflows/build.yml
pedantic
(-WError
) for cabal #2606.github/workflows/hackage.yml
stack-9.2.1.yaml
, added but not working.circleci/config.yml
cabal-ghc921.project
- Used for disabling the not yet working plugins and fetching upstream patchesconfiguration-ghc-921.nix
.github/workflows/nix.yml
.github/workflows/test.yml
- Uses the custom cabal.project and disables tests for non-working plugins. Needs to be updated when more plugins get ghc-9.2.1 supportDependencies which needs updates and hackage release
allow-newer
field ofcabal-ghc921.project
The text was updated successfully, but these errors were encountered: