Merge pull request #915 from myme/develop

Haskell + PureScript module improvements
This commit is contained in:
Henrik Lissner 2018-10-15 01:05:29 -04:00 committed by GitHub
commit 0a1f42e25d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -15,6 +15,7 @@ This is necessary because `intero-mode' doesn't do its own error checks."
:config :config
(setq haskell-compile-cabal-build-command "stack build --fast") (setq haskell-compile-cabal-build-command "stack build --fast")
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition) (set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition)
(set-company-backend! 'intero-mode 'intero-company)
(when (featurep! :feature syntax-checker) (when (featurep! :feature syntax-checker)
(flycheck-add-next-checker 'intero '(warning . haskell-hlint))) (flycheck-add-next-checker 'intero '(warning . haskell-hlint)))

View file

@ -3,7 +3,10 @@
(after! purescript-mode (after! purescript-mode
(add-hook! 'purescript-mode-hook (add-hook! 'purescript-mode-hook
#'(purescript-indentation-mode #'(purescript-indentation-mode
rainbow-delimiters-mode))) rainbow-delimiters-mode))
(set-lookup-handlers! 'purescript-mode
:definition #'psc-ide-goto-definition
:documentation #'purescript-pursuit))
;; (def-package! flycheck-purescript ;; (def-package! flycheck-purescript