我的设置使用了这个:
(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)