Open gn0 opened 1 year ago
It seems you should add +ghc-lib
flag to stylish-haskell. See #405 with the same error for GHC 9.2.3. This flag is defolted to be true by #445, but unfortunately new hackage version has not been provided yet #451.
Thanks, @Lev135! This solved the issue for me:
$ ghcup compile hls --version 2.0.0.0 --ghc 9.4.5 -- --constraint "stylish-haskell +ghc-lib"
stylish-haskell 0.14.4.0 fails to compile with GHC 9.4.5. This breaks
ghcup compile hls --version 2.0.0.0 --ghc 9.4.5
.The output of
cabal install stylish-haskell
: