Skip to content

Reconsider cabal flags manual setting in haskell-language-server.cabal to get a hackage version with ghc-9.0 support among other things #2317

Closed
@pepeiborra

Description

@pepeiborra

The flags are currently set at manual: True, preventing the Cabal solver from switching them in order to find a build plan.
This has two clear disadvantages:

  1. HLS doesn't cabal install in Hackage with GHC 9.x because not all the plugins are available
  2. We need to keep separate cabal-ghcXXX.project files in order to build locally, which works fine in the command line but doesn't work with the IDE because there is no way to change the cabal.project file from the cradle

On the other hand, setting the flags to manual: False has the following disadvantages:

  1. Cabal can reach an unexpected/incomplete build plan if users have an older index snapshot and forget to do cabal update
  2. are there any others?

To me, 1 is not something we should care about, since users doing cabal install haskell-language-server are very few these days and probably know what they are doing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions