Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell 不明确的出现`不安全性能';在安装二进制文件时_Haskell_Hackage - Fatal编程技术网

Haskell 不明确的出现`不安全性能';在安装二进制文件时

Haskell 不明确的出现`不安全性能';在安装二进制文件时,haskell,hackage,Haskell,Hackage,我正在尝试阴谋集团安装binary strict,但出现以下错误: src/Data/Binary/BitBuilder.hs:205:37: Ambiguous occurrence `unsafePerformIO' It could refer to either `Foreign.unsafePerformIO', imported from `Foreign' at src/Data/Binary/BitBuilder.hs:38:1-

我正在尝试阴谋集团安装binary strict,但出现以下错误:

src/Data/Binary/BitBuilder.hs:205:37:
Ambiguous occurrence `unsafePerformIO'
It could refer to either `Foreign.unsafePerformIO',
                         imported from `Foreign' at src/Data/Binary/BitBuilder.hs:38:1-14
                      or `System.IO.Unsafe.unsafePerformIO',
                         imported from `System.IO.Unsafe' at   src/Data/Binary/BitBuilder.hs:42:26-40
                         (and originally defined in `GHC.IO')
Failed to install binary-strict-0.4.8.1
cabal: Error: some packages failed to install:
binary-strict-0.4.8.1 failed during the building phase. The exception was:
ExitFailure 1

我正在运行ghc 7.6.3。如果相关,我也安装了binary-0.7.2.3。

如前所述,binary strict仅适用于
base>=4.7
。GHC 7.6.3使用
base=4.6.*
,因此无法工作。您应该向维护人员提交一个bug,并通过将
隐藏(unsafePerformIO)
添加到相关文件的
导入外来
行来解决该问题。

如前所述,二进制严格仅适用于
base>=4.7
。GHC 7.6.3使用
base=4.6.*
,因此无法工作。您应该向维护人员提交一个bug,并通过将
隐藏(unsafePerformIO)
添加到相关文件的
导入外来文件
行来解决此问题。

。现在已经修好了。此外,我已经在包的详细信息中列出了git回购协议,因此您现在可以提出问题,我将了解这些问题。感谢Thomas提出的修复方案。

我才刚刚发现这一点。现在已经修好了。此外,我已经在包的详细信息中列出了git回购协议,因此您现在可以提出问题,我将了解这些问题。感谢Thomas提出的修复建议。

谢谢,也许我也会安装一个更新的ghc。谢谢,也许我也会安装一个更新的ghc。