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

@ -13,7 +13,4 @@ This is necessary because `intero-mode' doesn't do its own error checks."
(message "Couldn't find stack. Refusing to enable intero-mode."))))
(add-hook 'haskell-mode-hook #'+haskell|init-intero)
:config
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition)
(when (featurep! :feature syntax-checker)
(add-hook! 'intero-mode
(flycheck-add-next-checker 'intero '(warning . haskell-hlint)))))
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))