haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.71k stars 368 forks source link

Pushing HLS' dependency to support Cabal 3.12, so we can use multi-repl feature in HLS codebase. #4219

Open soulomoon opened 5 months ago

soulomoon commented 5 months ago

Historically, HLS using experience in HLS codebase itself is not great since the lack multiple home units support. Since now Cabal 3.12 have released, and HLS also supports multi-repl feature, https://github.com/haskell/haskell-language-server/issues/4178.

We should be able to use this new feature in our own codebase. But our dependency is blocking us, some of them are: cabal-doctest entropy extensions fourmolu ghc-paths optparse-applicative ormolu pretty-simple

soulomoon commented 5 months ago

Current workaround forcing to use the new version of the following in cabal.project

allow-newer:
  *:Cabal,
  *:Cabal-syntax,
  *:optparse-applicative

source-repository-package
    type: git
    location: https://github.com/haskell/cabal.git
    subdir: Cabal Cabal-syntax
    tag : 3.12.0+0

================ update

Also need to clone the repo optparse-applicative by your side and add the path it to cabal.project's packages