3

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?

2

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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