`ghcup compile hls -v 1.5.1 --ghc 9.0.1` tries to install brittany (and fails)
With v0.1.17.4, I get this error:
[__1] trying: base-4.15.0.0/installed-4.15.0.0 (dependency of ghcide)
[__2] trying: hls-brittany-plugin-1.0.1.1 (user goal)
[__3] next goal: brittany (dependency of hls-brittany-plugin)
[__3] rejecting: brittany-0.13.1.2 (conflict:
base==4.15.0.0/installed-4.15.0.0, brittany => base>=4.12 && <4.15)
[__3] skipping: brittany-0.13.1.1, brittany-0.13.1.0, brittany-0.13.0.0,
brittany-0.12.2.0, brittany-0.12.1.1, brittany-0.12.1.0, brittany-0.12.0.0,
brittany-0.11.0.0, brittany-0.10.0.0, brittany-0.9.0.1, brittany-0.9.0.0,
brittany-0.8.0.3, brittany-0.8.0.2 (has the same characteristics that caused
the previous version to fail: excludes 'base' version 4.15.0.0)
[__3] fail (backjumping, conflict set: base, brittany, hls-brittany-plugin)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, brittany, ghcide,
hls-brittany-plugin
Brittany doesn't currently work with GHC 9.0 so the error is expected if we try to build it, but haskell-language-server.cabal
explicitly disables it for GHC >= 9.0.1. I've also tried -- -f-brittany
just in case, but it didn't help.
Having looked at the build tree with --keep=always
, I believe it's because there's a cabal.project
which explicitly lists ./plugins/hls-brittany-plugin
. I haven't yet dug into where that's coming from.