debugging - ExitFailure 1 再次出现在 `Hat`

标签 debugging haskell compiler-errors cabal-install hat

this question ,我们安装了 Hat 的依赖项.现在当我尝试做

cabal install Hat

我最后得到:
[ 6 of 11] Compiling Environment      ( trans/Environment.hs, dist/build/hat-trans/hat-trans-tmp/Environment.o )

trans/Environment.hs:497:13:
    Not in scope: data constructor `PExplTypeArg'
Failed to install hat-2.8.0.0
World file is already up to date.
cabal: Error: some packages failed to install:
hat-2.8.0.0 failed during the building phase. The exception was:
ExitFailure 1

最佳答案

Hat 依赖于旧版本的 haskell-src-exts .有问题的构造函数似乎在 1.14 版本中消失了。

您可以编辑文件,删除有问题的行并向 Hat 提交补丁。或者,指定和额外的约束:

cabal install hat --constraint haskell-src-exts==1.13.5

将来,您可以通过查看包依赖关系,找到包含相关类型的模块并查找构造函数来自行追踪此类问题。这种特殊情况也可以用谷歌搜索。

关于debugging - ExitFailure 1 再次出现在 `Hat`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25083979/

相关文章:

c++ - 使用 Visual Studio 2010 调试器时无法读入文件

javascript - 如何设置 VS Code 进行 Angular 调试?

haskell - 如何使用 Stack Haskell 构建 docker 镜像?

compiler-errors - Twitter Bootstrap - less.app 编译错误 : "EISDIR illegal operation on a directory" when saving

Swift “UDP Read” 代码 - unsaferawbufferpointer 编译错误

c# - Microsoft Visual Studio 2012 无法在 c# 文件中设置断点

java - Android Eclipse Java 调试关于识别空对象比较的问题

haskell - Haskell 中的所有 Monad 实例是否只是从 Hask 映射到 Hask 的不同方式?

list - 交换元组列表中的元组

excel - 编译抛出 "User-defined type not defined"错误,但不会转到有问题的代码行