Search code examples
haskellemacscabalemacs24ghc-mod

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


I want to use cabal repl to instead of ghci (. My goal is being able to use other modules in my project ).


Solution

  • My setups uses this:

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

    concerning ghc and cabal and is running fine as it is (current ghc-mod and emacs 24.3.1)