当我今天安装Euterpea的时候,我发现HCodecs-0.5.1 (对Euterpea的依赖)总是倾向于beult-失败。
因此,我转到Hackage.Haskell.org,检查HCodecs提供了一个最新版本: HCodecs-0.5.2,并且我成功地安装了它,由阴谋v1-安装(严格遵循来自Euterpea.com &Haskell.org的指示)
但是,在我安装了HCodecs-0.5.2之后,Euterpea的安装仍然没有安装HCodecs-0.5.1;对于依赖项检查来说,这个id相当奇怪,它没有跳过较旧的版本包,而后者是本地可用的;
这里是2安装的日志,希望任何人都能帮助我绕过版本检查,或者解决HCodecs-0.5.1的构建失败:
HCodecs-0.5.2==========================的=================安装
PS C:\WINDOWS\system32> cabal v1-install HCodecs-0.5.2
Resolving dependencies...
Downloading fail-4.9.0.0
Downloaded fail-4.9.0.0
Starting fail-4.9.0.0
Building fail-4.9.0.0
Completed fail-4.9.0.0
Downloading HCodecs-0.5.2
Downloaded HCodecs-0.5.2
Starting HCodecs-0.5.2
Building HCodecs-0.5.2
Completed HCodecs-0.5.2===continue安装Euterpea,HCodecs-0.5.1没有跳过并再次失败 ====
PS C:\WINDOWS\system32> cabal v1-install Euterpea
Resolving dependencies...
Starting HCodecs-0.5.1
Building HCodecs-0.5.1
Failed to install HCodecs-0.5.1
Build log ( C:\Users\12798\AppData\Roaming\cabal\logs\ghc-8.10.2\HCodecs-0.5.1-KovArVTnpFnLaEvHYYD8GP.log ):
Preprocessing library for HCodecs-0.5.1..
Building library for HCodecs-0.5.1..
[1 of 7] Compiling Codec.ByteString.Builder ( src\Codec\ByteString\Builder.hs,
dist\build\Codec\ByteString\Builder.o )
src\Codec\ByteString\Builder.hs:79:1: warning: [-Wunused-imports]
The import of `Data.Semigroup' is redundant
except perhaps to import instances from `Data.Semigroup'
To import instances alone, use: import Data.Semigroup()
|
79 | import Data.Semigroup
| ^^^^^^^^^^^^^^^^^^^^^
[2 of 7] Compiling Codec.ByteString.Parser ( src\Codec\ByteString\Parser.hs, dist\build\Codec\ByteString\Parser.o )
src\Codec\ByteString\Parser.hs:143:5: error:
`fail' is not a (visible) method of class `Monad'
|
143 | fail err = Parser $ \(S _ _ bytes) ->
| ^^^^
cabal: Leaving directory 'C:\Users\12798\AppData\Local\Temp\cabal-tmp-13328\HCodecs-0.5.1'
cabal.exe: Error: some packages failed to install:
Euterpea-2.0.7-16Dwojok2ejBacdiDIytTu depends on Euterpea-2.0.7 which failed
to install.
HCodecs-0.5.1-KovArVTnpFnLaEvHYYD8GP failed during the building phase. The
exception was:
ExitFailure 1这就是我在dependency版本上的全部日志
发布于 2020-11-15 07:23:17
问题是Euterpea完全依赖于HCodecs的0.5.1版本,而对MonadFail提案(在GHC8.8.1中完全实现)的支持仅在0.5.2版中添加到HCodecs中。在Euterpea更新其依赖列表之前,您有两个选择:要么将--allow-newer命令行标志传递给阴谋集团,这将导致它忽略上版本界限,要么将您的GHC降级到8.6.5,这是没有完全实现MonadFail建议的最终版本。在这种情况下,我推荐前者。
https://stackoverflow.com/questions/64841853
复制相似问题