如何在`ghc-mod`中使用`cabal repl`而不是`ghci`?

Ami*_*ein 7 emacs haskell cabal emacs24 ghc-mod

我想使用cabal repl代替ghci(.我的目标是能够在我的项目中使用其他模块).

Car*_*ten 5

我的设置使用了这个:

(setq haskell-program-name "cabal repl")
(setq haskell-ghci-program-name "cabal repl")
(custom-set-variables
 ;; ...
 '(haskell-process-type 'cabal-repl)
 ;; ...
)
Run Code Online (Sandbox Code Playgroud)

关于ghc和cabal并且运行正常(目前ghc-mod和emacs 24.3.1)