2010-12-08 39 views
3

我想安装使用cabal安装,它反过来安装包'派生-2.3.0.2'的包“yi”编辑器。我派生的编译过程中出现以下错误:派生-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选项= -XTypeSynonymInstances,这反过来又给出了另一个编译错误来构建它。

我使用的是ubuntu maverick 32位,使用ghc-6.12.1和cabal-install 0.8.2。 ghc是从软件包存储库安装的。 Cabal安装使用:

cabal-install cabal

Alex。

回答

1

我会考虑报告bug或询问[email protected]地址。这应该是一个误会。您也可以尝试安装Hackage之一的旧版本。

0

我得到同样的错误建设derive-2.3.0.2(也试图安装易)。和你一样,添加TypeSynonymInstances语言扩展只会让事情变得更糟。

虽然我同意这应该被认为是一个错误,但在衍生2.4.1,这是最新版本的Hackage不是问题。如果已安装,可以通过下载软件包源并相应地更改派生依赖性约束来构建Yi。 Yi然后为我建立/运行,但我只能想象可能有原始约束的根本原因(派生< 2.4)。

我还没有看,但也许达尔奇的头部也有一些解决这个问题。

祝你好运!