Я пытаюсь установить редактор «yi» с помощью программы cabal-install, которая, в свою очередь, устанавливает пакет 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, что, в свою очередь, дает еще одну ошибку компиляции.
I am using ubuntu maverick 32-bit, with ghc-6.12.1 and cabal-install 0.8.2. The ghc was installed from the package repository. Cabal was installed using:
cabal-install cabal
Алекс.