Added stack build
support for intero users
This commit is contained in:
parent
6334af8a84
commit
b0a754391a
2 changed files with 4 additions and 2 deletions
|
@ -13,6 +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."))))
|
(message "Couldn't find stack. Refusing to enable intero-mode."))))
|
||||||
(add-hook 'haskell-mode-hook #'+haskell|init-intero)
|
(add-hook 'haskell-mode-hook #'+haskell|init-intero)
|
||||||
:config
|
:config
|
||||||
|
(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)
|
||||||
(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))))
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
(after! haskell-mode
|
(after! haskell-mode
|
||||||
(map! :map haskell-mode-map
|
(map! :map haskell-mode-map
|
||||||
:localleader
|
:localleader
|
||||||
|
;; this is set to use cabal for dante users and stack for intero users:
|
||||||
|
:n "b" #'haskell-process-cabal-build
|
||||||
|
:n "c" #'haskell-cabal-visit-file
|
||||||
:n "p" #'hindent-reformat-buffer
|
:n "p" #'hindent-reformat-buffer
|
||||||
:v "p" #'hindent-reformat-region))
|
:v "p" #'hindent-reformat-region))
|
||||||
|
|
||||||
|
@ -29,8 +32,6 @@
|
||||||
(after! dante-mode
|
(after! dante-mode
|
||||||
(map! :map dante-mode-map
|
(map! :map dante-mode-map
|
||||||
:localleader
|
:localleader
|
||||||
:n "b" #'haskell-process-cabal-build
|
|
||||||
:n "c" #'haskell-cabal-visit-file
|
|
||||||
:n "t" #'dante-type-at
|
:n "t" #'dante-type-at
|
||||||
:n "i" #'dante-info
|
:n "i" #'dante-info
|
||||||
:n "l" #'haskell-process-load-or-reload
|
:n "l" #'haskell-process-load-or-reload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue