Make haskell-hlint setup DRY

This commit is contained in:
Henrik Lissner
2018-07-17 02:27:39 +02:00
parent ef4d5827a1
commit 0a4cdf8202
3 changed files with 9 additions and 10 deletions

View File

@ -2,8 +2,4 @@
;;;###if (featurep! +dante)
(def-package! dante
:hook (haskell-mode . dante-mode)
:config
(when (featurep! :feature syntax-checker)
(add-hook! 'dante-mode-hook
(flycheck-add-next-checker 'haskell-dante '(warning . haskell-hlint)))))
:hook (haskell-mode . dante-mode))