ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Conflicting exports with GHC HEAD #26

Closed Fuuzetsu closed 11 years ago

Fuuzetsu commented 11 years ago

Trying to compile Hoogle with GHC HEAD for testing. I patched anything that it depended on but didn't work with HEAD locally (primitive, aeson (and vector)) only to fail on the following:

✓ misaki shana % cabal install
Resolving dependencies...
Configuring hoogle-4.2.20...
Building hoogle-4.2.20...
Preprocessing library hoogle-4.2.20...
[ 1 of 46] Compiling Paths_hoogle     ( dist/build/autogen/Paths_hoogle.hs, dist/build/Paths_hoogle.o )
[ 2 of 46] Compiling Data.TypeMap     ( src/Data/TypeMap.hs, dist/build/Data/TypeMap.o )
[ 3 of 46] Compiling Data.Heap        ( src/Data/Heap.hs, dist/build/Data/Heap.o )
[ 4 of 46] Compiling Hoogle.Score.Type ( src/Hoogle/Score/Type.hs, dist/build/Hoogle/Score/Type.o )
[ 5 of 46] Compiling Hoogle.Score.Scoring ( src/Hoogle/Score/Scoring.hs, dist/build/Hoogle/Score/Scoring.o )
[ 6 of 46] Compiling Hoogle.Score.All ( src/Hoogle/Score/All.hs, dist/build/Hoogle/Score/All.o )
[ 7 of 46] Compiling General.Base     ( src/General/Base.hs, dist/build/General/Base.o )

src/General/Base.hs:5:42:
    Conflicting exports for ‛isLeft’:
       ‛module X’ exports ‛X.isLeft’
         imported from ‛Data.Either’ at src/General/Base.hs:12:1-23
       ‛module General.Base’ exports ‛General.Base.isLeft’
         defined at src/General/Base.hs:64:1

src/General/Base.hs:5:42:
    Conflicting exports for ‛isRight’:
       ‛module X’ exports ‛X.isRight’
         imported from ‛Data.Either’ at src/General/Base.hs:12:1-23
       ‛module General.Base’ exports ‛General.Base.isRight’
         defined at src/General/Base.hs:65:1
Failed to install hoogle-4.2.20
cabal: Error: some packages failed to install:
hoogle-4.2.20 failed during the building phase. The exception was:
ExitFailure 1
✗ 1 misaki shana % ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.7.20130826
ndmitchell commented 11 years ago

@Fuuzetsu I've just pushed a likely fix, can you test and see if that is sufficient to fix it?

Fuuzetsu commented 11 years ago

Compiles fine, thanks.