-
-
Notifications
You must be signed in to change notification settings - Fork 368
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 with aeson >= 2.0 #2477
Comments
Of course floskell is not buildable with aeson >= 2.0:
|
given aeson >= 2.0 inlcudes an important security related patch i think we should try to use it here |
PR to add aeson >= 2.0 to floskell: ennocramer/floskell#69 |
hls-plugin-api needs to be patched, several errors like:
the fix should be backwards compatible as we have to support libraries with only support for aeson < 2.0 (hlint-3.2) or aeson >= 2.0 (brittany) |
After checking master version of lsp packages works with hls, including the test suite, will release new versions |
I suspect we can sort out |
@michaelpj |
stylish-haskell also would need support for aeson >= 2.0: haskell/stylish-haskell#387 |
And packages (hls-plugin-api, ghcide,..) need to be adapted to the new lsp version, which supports in turn aeson-2. |
Just to reiterate on this, I'm fairly sure that the security issue is not relevant for HLS as it isn't parsing untrusted input. |
I am gonna reopen to track the possible use of aeson 2 for ghc < 9.0.1 and brittany upstream deps needing support for ghc >= 9.0.1 |
Do we need to do this? |
No strictly, but we can take ride of some pesky |
IMO it's not worth spending lots of effort on. We can force it once we're only supporting GHC 9 :p |
agree, we are also tracking here stylish-haskell and Brittany deps support for aeson/ghc-9.0 but maybe we could move that to the ghc-9.0 support and close this will do |
ok, i've moved the pending tasks to #297 and give up on get aeson-2.0 support for ghc < 9.0.1 so closing this |
I am continuing @Anton-Latukha's work from try enable brittany #2473 in this branch https://github.com/jneira/haskell-language-server/tree/brittany-9.0.1
As the new version of brittany needs aeson >= 2.0 we have to jump into that wagon (or patch brittany to support aeson <= 2.0 and ghc-9.0.1 at same time)
So we have to go down the rabbit hole to get aeson-2 for ghc >= 9.01:
Upstream brittany deps which need support for ghc-9.0.1 (so needed to make available brittany+9.0.1 in hackage)
Needed to support aeson-2 for ghc < 9.0.1 (not mandatory)
The text was updated successfully, but these errors were encountered: