lang/haskell: fix haskell-hlint checker

Causing "not a valid syntax checker" errors because it haskell-hlint was
defined too soon.
This commit is contained in:
Henrik Lissner
2018-07-17 23:47:57 +02:00
parent e8d4b74c29
commit 2968374081
3 changed files with 8 additions and 9 deletions

View File

@ -13,4 +13,6 @@ 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)
(flycheck-add-next-checker 'intero '(warning . haskell-hlint))))