Closed zac-garby closed 3 years ago
The strange thing is, it definitely should work, looking at the code for lsp-haskell
,
;; Should run under haskell-mode and haskell-literate-mode. We need to list the
;; latter even though it's a derived mode of the former
:major-modes '(haskell-mode haskell-literate-mode)
So I'm not sure what I might have done wrong.
EDIT: I may have found the problem? It seems that the literate Haskell mode in emacs is called literate-haskell-mode
, but this package refers to it as haskell-literate-mode
.
I've added these two lines to my .emacs:
When I open a
.hs
file, the LSP opens up properly and everything works fine with the Haskell language server.However, when I open a
.lhs
file, I get the following error message.I've had a look through the settings for
lsp-mode
andlsp-haskell
but I haven't found any fix for this, so I'm hoping this would be the right place to ask.Thanks!