I'm using doom emacs.

my ~/.doom.d/config.el is -

(use-package! lsp-mode
(haskell-mode . lsp)

(use-package! lsp-ui

(use-package! lsp-haskell
:after haskell-mode
(setq lsp-haskell-process-path-hie "ghcide")
(setq lsp-haskell-process-args-hie '())
(add-hook 'haskell-mode-hook #'lsp)

(use-package! haskell-mode
:mode "\\.hs$"
;; (setq haskell-font-lock-symbols t)
;;(add-to-list ("<>" . "⊕"))
(setq haskell-font-lock-symbols-alist
        (lambda (elem)

whenever i open haskell file i get error File mode specification error: (void-variable lsp-csharp--action-client-find-references) -

enter image description here

OS details -

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 32 (Thirty Two)
Release:        32
Codename:       ThirtyTwo

emacs details -

$ emacs -version
GNU Emacs 27.1

How can I solve this issue?

1 Answer 1


I would suggest reinstalling lsp-mode and eventually unpinning the lsp-mode package. If this does not help, can you post the error callstack after M-x toggle-debug-on-error?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.