haskell - 在emacs中编码Haskell时找不到"Stack"

标签 haskell emacs

在 MacOS 10.12 上的 emacs(使用 brew 安装的堆栈)中编码 Haskell 时出现错误:

自动检查语法时出错:(file-error "Searching for program""no such file or directory""stack")

我的配置文件 .emacs 包含以下内容:

(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)

使用 emacs --debug-init 运行不会出现错误。

有人知道如何解决这个问题吗?

最佳答案

我已经设法通过添加来解决问题

(add-to-list 'exec-path "/usr/local/bin/")

到 .emacs 配置文件。

关于haskell - 在emacs中编码Haskell时找不到"Stack",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39399050/

相关文章:

macos - Mac OS X Lion 上的 Emacs - Ctrl 和 Alt 触摸怎么样?

android - 对于 Emacs,在 Android 中使用 CTRL 键的漫长旅程

emacs - 有没有办法注释掉大部分代码?

haskell - 为什么显式写入类型 `Product Int` 适用于任何 `Num` 类型?

haskell - 如何设置在 vs code 中编译 haskell 的任务?

haskell - 看似无可辩驳的 GADT 模式上的失败匹配

Emacs:list-packages [不匹配]

emacs - 如何使用align.el和 `align-current`轻松对齐let表单

haskell - 秒差距行开始模式?

haskell - 重叠实例以展平元组