While coding Haskell in emacs(stack installed with brew) on MacOS 10.12 I get the error:
Error while checking syntax automatically: (file-error "Searching for program" "no such file or directory" "stack")
My config file .emacs contains the following:
(require 'package)
add-to-list
'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
(package-install 'intero)
(add-hook 'haskell-mode-hook 'intero-mode)
Running with emacs --debug-init gives no errors.
Does somebody know how to solve this?
I've managed to fix the problem by adding
(add-to-list 'exec-path "/usr/local/bin/")
to the .emacs config file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With