music-suite / music-pitch-literal

This repo has been merged into: https://github.com/music-suite/music-suite
http://music-suite.github.io
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Duplicate instance declarations when compiling Data.Semigroup.Applicative #3

Closed sdclibbery closed 10 years ago

sdclibbery commented 10 years ago

Having installed the haskell platform on a new Ubuntu install, I tried to install the music suite. However I see compile errors as follows:

> cabal install music-preludes
Resolving dependencies...
Configuring music-pitch-literal-1.6...
Building music-pitch-literal-1.6...
Preprocessing library music-pitch-literal-1.6...
[1 of 4] Compiling Data.Semigroup.Applicative ( src/Data/Semigroup/Applicative.hs, dist/build/Data/Semigroup/Applicative.o )

src/Data/Semigroup/Applicative.hs:8:10:
    Duplicate instance declarations:
      instance Functor First
        -- Defined at src/Data/Semigroup/Applicative.hs:8:10
      instance Functor First -- Defined in `Data.Semigroup'

src/Data/Semigroup/Applicative.hs:10:10:
    Duplicate instance declarations:
      instance Applicative First
        -- Defined at src/Data/Semigroup/Applicative.hs:10:10
      instance Applicative First -- Defined in `Data.Semigroup'

src/Data/Semigroup/Applicative.hs:14:10:
    Duplicate instance declarations:
      instance Functor Last
        -- Defined at src/Data/Semigroup/Applicative.hs:14:10
      instance Functor Last -- Defined in `Data.Semigroup'

src/Data/Semigroup/Applicative.hs:16:10:
    Duplicate instance declarations:
      instance Applicative Last
        -- Defined at src/Data/Semigroup/Applicative.hs:16:10
      instance Applicative Last -- Defined in `Data.Semigroup'
Failed to install music-pitch-literal-1.6
cabal: Error: some packages failed to install:
lilypond-1.6 depends on music-pitch-literal-1.6 which failed to install.
music-pitch-1.6 depends on music-pitch-literal-1.6 which failed to install.
music-pitch-literal-1.6 failed during the building phase. The exception was:
ExitFailure 1
music-preludes-1.6 depends on music-pitch-literal-1.6 which failed to install.
music-score-1.6 depends on music-pitch-literal-1.6 which failed to install.
musicxml2-1.6 depends on music-pitch-literal-1.6 which failed to install.

Running ghc-pkg list, I have the following entries related to either music or semigroup:

   music-dynamics-1.6
   music-dynamics-literal-1.6
   music-parts-1.6
   semigroupoids-4.0.1
   semigroups-0.13.0.1
hanshoglund commented 10 years ago

Fixed in 1.6.2, please report any further problems.