Strange error in the process of creating-2.3.0.2

I am trying to install the "yi" editor using cabal-install, which installs the "derive-2.3.0.2" package in turn. When creating a compilation, I get the following error:

[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

Of course, I tried to build it using -ghc-option = -XTypeSynonymInstances, which in turn gives another compilation error.

I am using 32-bit ubuntu maverick, with ghc-6.12.1 and cabal-install 0.8.2. Ghc was installed from the package repository. Kabbalah was installed using:

cabal-install cabal

Alex

+3
source share
2 answers

I would like to report a bug or request the address haskell-cafe@haskell.org. This must be a mistake. Perhaps you can also install one of the older versions from Hackage .

+1
source

-2.3.0.2 ( Yi). , TypeSynonymInstances .

, , -2.4.1, Hackage. , Yi, . Yi / , , ( < 2.4).

, , , darcs Yi .

!

0

Source: https://habr.com/ru/post/1779288/


All Articles