[haskell-layer] Fixed ghci-ng for stack projects

This commit is contained in:
Bjarke Vad 2015-12-22 15:27:33 +01:00 committed by syl20bnr
parent 93cfc876a6
commit 5c92f7dc2c
1 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,10 @@
(setq haskell-process-args-cabal-repl '("--ghc-option=-ferror-spans" "--with-ghc=ghci-ng"))
;; if haskell-process-type == GHCi
(setq haskell-process-path-ghci "ghci-ng")
;; fixes ghci-ng for stack projects
(setq haskell-process-wrapper-function
(lambda (args)
(append args (list "--with-ghc" "ghci-ng"))))
(spacemacs/set-leader-keys-for-major-mode 'haskell-mode
;; function suggested in