about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/config.el
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/emacs.d/config.el')
-rw-r--r--users/glittershark/emacs.d/config.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/config.el b/users/glittershark/emacs.d/config.el
index 1a58325fc1c5..1cfa586ef11a 100644
--- a/users/glittershark/emacs.d/config.el
+++ b/users/glittershark/emacs.d/config.el
@@ -694,6 +694,11 @@
 (defun +grfn/haskell-mode-setup ()
   (interactive)
   (flymake-mode -1)
+  (add-to-list 'flycheck-disabled-checkers 'haskell-ghc)
+
+  (flycheck-remove-next-checker 'lsp 'haskell-ghc)
+  (flycheck-add-next-checker 'lsp '(warning . haskell-hlint))
+
   ;; If there’s a 'hie.sh' defined locally by a project
   ;; (e.g. to run HIE in a nix-shell), use it…
   (when-let ((project-dir (locate-dominating-file default-directory "hie.sh")))