在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发布于 2014-08-02 00:19:02
Hat依赖于旧版本的haskell-src-exts。有问题的构造函数似乎在1.14版中消失了。
您可以编辑该文件,删除有问题的行,然后向Hat提交补丁。或者,指定和附加约束:
cabal install hat --constraint haskell-src-exts==1.13.5将来,您可以通过查看包依赖项来跟踪这些类型的问题,找到包含有问题的类型的模块,并查找构造函数。这个特殊的案例也是可以谷歌搜索的。
https://stackoverflow.com/questions/25083979
复制相似问题