Closed andreasabel closed 10 months ago
Also revised lsp-types 1.4.0.1 and 1.5.0.0.
Thanks for the revisions. master
has 9.8 in CI, so this is working for the last few releases.
One could consider a patch release adding DuplicateRecordFields to the default-extensions to enable building lsp-types-1.6.0.0 with GHC > 9.6.
Are people using old versions still? I'm mostly focussed on HLS, which pretty aggressively follows the latest lsp
.
agda-language-server
has been using lsp-1, but I will try to migrate it to lsp-2.
I notice lsp-types-2
has ballooned into 400 modules, how come? This makes compilation very slow.
lsp-types-2
is now mostly auto-generated, so it's one module per type. There's no sensible way to group them and putting everything in one module would also be pretty bad. It goes much faster when you tell GHC it can use some parallelism building the package (I await the GHC/cabal semaphore work eagerly...), e.g.
package lsp-types
ghc-options: -j4
I think there isn't anything else to do here?
@michaelpj If you give me upload rights for lsp-types, I can make patch releases (which amounts to adding the extension to the cabal file(s)).
I can do that but I'm also happy to fix things. I thought we got everything - what else do you want to do?
What I meant was making lsp-1 available on GHC 9.8:
One could consider a patch release adding
DuplicateRecordFields
to thedefault-extensions
to enable buildinglsp-types-1.6.0.0
with GHC > 9.6.
Sure, if you'd like to maintain old releases I'm happy for you to do that. I'll give you write permissions on the repo too, please do make sure there are tags for any releases that you do.
Ah, I see you already have it via the haskell
org!
Added you on Hackage
lsp-types-1.6.0.0 fails to build with GHC 9.8.1:
Duplicate record field ‘_foo’ in export list
This is https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.8#re-exporting-clashing-record-fields-now-requires-xduplicaterecordfields
The immediate cure is to revise
lsp-types-1.6.0.0
tobase < 4.19
: https://hackage.haskell.org/package/lsp-types-1.6.0.0/revisions/One could consider a patch release adding
DuplicateRecordFields
to thedefault-extensions
to enable buildinglsp-types-1.6.0.0
with GHC > 9.6.