summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-03-30 07:11:35 +0900
committerSean Whitton <spwhitton@spwhitton.name>2015-03-30 07:11:35 +0900
commitd37fc9909aee67640054260bdb32bfb04cb53224 (patch)
treeda443552d5059aa8ccd458fd1f3374861d01223e
parent8152d5c4953572ba8cb4763879aa88cda9673b28 (diff)
downloaddotfiles-d37fc9909aee67640054260bdb32bfb04cb53224.tar.gz
cabal-repl not ghci for haskell process with nix-shell
-rw-r--r--.emacs.d/init-haskell.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/.emacs.d/init-haskell.el b/.emacs.d/init-haskell.el
index 73be4f30..ee0e8dab 100644
--- a/.emacs.d/init-haskell.el
+++ b/.emacs.d/init-haskell.el
@@ -96,12 +96,11 @@
;; When I've created a shell.nix in the project root, use nix-shell
;; to run ghci and cabal.
(when (f-exists? (projectile-expand-root "shell.nix"))
- (make-local-variable 'haskell-process-type)
- (make-local-variable 'haskell-process-wrapper-function)
- (setq haskell-process-type 'ghci)
- (setq haskell-process-wrapper-function
- (lambda (argv) (append (list "nix-shell" "-I" "." "--command" )
- (list (mapconcat 'identity argv " ")))))))
+ (setq-local haskell-process-type 'cabal-repl)
+ (setq-local
+ haskell-process-wrapper-function
+ (lambda (argv) (append (list "nix-shell" "-I" "." "--command" )
+ (list (mapconcat 'identity argv " ")))))))
;;; hindent for reformatting code