Added hlint support for intero users

This commit is contained in:
Patrick Elliott 2018-07-16 12:28:41 +02:00
parent b38cbcd060
commit f8581c3206

View file

@ -13,4 +13,7 @@ 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))
(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)))))