I want to use cabal replacement instead of ghci (my goal is to use other modules in my project).
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)
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"))
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.
cabal repl