How can I use `cabal repl` instead of` ghci` in `ghc-mod`?

I want to use cabal replacement instead of ghci (my goal is to use other modules in my project).

+7
emacs haskell emacs24 ghc-mod cabal
source share
3 answers

My settings use this:

(setq haskell-program-name "cabal repl") (setq haskell-ghci-program-name "cabal repl") (custom-set-variables ;; ... '(haskell-process-type 'cabal-repl) ;; ... ) 

regarding ghc and cabal and it works fine as it is (current ghc-mod and emacs 24.3.1)

+5
source share

GHC-mod has a question about this, where the author suggests modifying the GHCi executable:

 (setq haskell-ghci-program-name "cabal") (setq haskell-ghci-program-args '("repl")) 
+4
source share

You should consider installing Haskell interactive mode .

Unlike Inferior Haskell Mode, this mode is deeply integrated into Cabal. It uses not only cabal repl , but also interprets Cabal error messages and offers to add import or language extensions and provides termination for modules.

+3
source share

All Articles