In my .emacs
file I have configured lsp
to use the 9.0.2 version of HLS.
(custom-set-variables
'(lsp-haskell-server-path "haskell-language-server-9.0.2~2.4.0.0")
)
I have ghc-9.0.2
installed, but my default GHC is set, by ghcup
, to be ghc-9.4.7
. That is, the ghc
in my path is a symlink to ghc-9.4.7
. This causes emacs
to say
ghcide compiled against GHC 9.4.7 but currently using 9.0.2. This is unsupported, ghcide must be compiled with the same GHC version as the project.
But why? ghc-9.0.2
is right there in my path. Can HLS really not find it? Does HLS always use ghc
from PATH
? That seems pretty inflexible to me. Is this configuration considered invalid?