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