Haskell mode doesn't seem to be resolving the modules in emacs when I use the stack command to build my project.

Is there a file that I have to edit to tell haskell-mode where to find the packages that stack installs from stackage?

1 Answer 1


All you (should) need to do is insert the following line in your emacs config:

(setq haskell-process-type 'stack-ghci)

That tells emacs that you want to use stack's repl command instead of whatever haskell-mode tries to infer automatically for you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.