我想安装使用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。