about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-04T15·28-0400
committerglittershark <grfn@gws.fyi>2020-07-04T15·30+0000
commit8545a617750cc4bf624104d54b369dec0cd0ce0c (patch)
tree7682a4fa7324398452656b440fcfdeb71d093476
parent020f6081cdd8a4609fb820da114c156e829559f5 (diff)
feat(gs/emacs): Run hlint after lsp r/1209
Change-Id: I57413e181354014eee2da7564ac3676b840dee94
Reviewed-on: https://cl.tvl.fyi/c/depot/+/913
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
-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")))