derive-2.3.0.2构建期间的怪异错误
-
10-10-2019 - |
题
我正在尝试使用Cabal-install安装“ Yi”编辑器,该编辑依次安装软件包'derive-2.3.0.2'。在派生的汇编过程中,我会收到以下错误:
[53 of 58] Compiling Data.Derive.Internal.Traversal ( Data/Derive/Internal/Traversal.hs, dist/build/Data/Derive/Internal/Traversal.o ) Data/Derive/Internal/Traversal.hs:34:0: Illegal instance declaration for `Applicative (Writer w)' (All instance types must be of the form (T t1 ... tn) where T is not a synonym. Use -XTypeSynonymInstances if you want to disable this.) In the instance declaration for `Applicative (Writer w)' cabal: Error: some packages failed to install: derive-2.3.0.2 failed during the building phase. The exception was: ExitFailure 1
当然,我尝试使用-ghc-option = -xTypesynonyminstances构建它,这又给出了另一个汇编错误。
我使用的是Ubuntu Maverick 32位,其中GHC-6.12.1和Cabal-Anstall 0.8.2。 GHC是从软件包存储库中安装的。 Cabal使用:
cabal-install cabal
亚历克斯。
解决方案
我会考虑报告一个错误或询问 haskell-cafe@haskell.org 地址。这应该是一种错误。您可能还可以尝试安装一个旧版本 骇客.
其他提示
我得到了相同的错误构建derive-2.3.0.2(也在尝试安装yi时)。与您一样,添加typesynonyminstances语言扩展只会使情况变得更糟。
虽然我同意这应该是一个错误,但它在derive-2.4.1中并不是问题,这是hackage上的最新版本。如果已安装了该程序,则可以通过下载软件包源并相应地更改衍生依赖性约束来构建Yi。 yi然后为我建立/运行,但我只能想象可能存在原始约束的根本原因(派生<2.4)。
我还没有看,但也许Yi的Darcs头也可以解决。
祝你好运!
不隶属于 StackOverflow