ivan-m / haskell-docs

Get the Haskell documentation of a name from a module
BSD 3-Clause "New" or "Revised" License
32 stars 8 forks source link

Ambiguous occurrence of InstalledPackageInfo_ #19

Closed creichert closed 7 years ago

creichert commented 9 years ago

I'm running into some compile errors while trying prepare the haskell-docs package for Debian.

Preprocessing library haskell-docs-4.2.2...
[1 of 7] Compiling Haskell.Docs.Types ( src/Haskell/Docs/Types.hs, dist-ghc/build/Haskell/Docs/Types.o )
[2 of 7] Compiling Haskell.Docs.Ghc ( src/Haskell/Docs/Ghc.hs, dist-ghc/build/Haskell/Docs/Ghc.o )
[3 of 7] Compiling Haskell.Docs.Cabal ( src/Haskell/Docs/Cabal.hs, dist-ghc/build/Haskell/Docs/Cabal.o )

src/Haskell/Docs/Cabal.hs:59:21:
    Ambiguous occurrence `InstalledPackageInfo_'
    It could refer to either `Distribution.InstalledPackageInfo.InstalledPackageInfo_',
                             imported from `Distribution.InstalledPackageInfo' at src/Haskell/Docs/Cabal.hs:12:1-40
                          or `PackageConfig.InstalledPackageInfo_',
                             imported from `PackageConfig' at src/Haskell/Docs/Cabal.hs:20:1-20
                             (and originally defined in `Cabal-1.16.0:Distribution.InstalledPackageInfo')

src/Haskell/Docs/Cabal.hs:59:48:
    Ambiguous occurrence `InstalledPackageInfo_'
    It could refer to either `Distribution.InstalledPackageInfo.InstalledPackageInfo_',
                             imported from `Distribution.InstalledPackageInfo' at src/Haskell/Docs/Cabal.hs:12:1-40
                          or `PackageConfig.InstalledPackageInfo_',
                             imported from `PackageConfig' at src/Haskell/Docs/Cabal.hs:20:1-20
                             (and originally defined in `Cabal-1.16.0:Distribution.InstalledPackageInfo')

src/Haskell/Docs/Cabal.hs:60:11:
    Ambiguous occurrence `InstalledPackageInfo'
    It could refer to either `Distribution.InstalledPackageInfo.InstalledPackageInfo',
                             imported from `Distribution.InstalledPackageInfo' at src/Haskell/Docs/Cabal.hs:12:1-40
                          or `PackageConfig.InstalledPackageInfo',
                             imported from `PackageConfig' at src/Haskell/Docs/Cabal.hs:20:1-20
                             (and originally defined in `Cabal-1.16.0:Distribution.InstalledPackageInfo')

src/Haskell/Docs/Cabal.hs:61:7:
    Ambiguous occurrence `exposedModules'
    It could refer to either `Distribution.InstalledPackageInfo.exposedModules',
                             imported from `Distribution.InstalledPackageInfo' at src/Haskell/Docs/Cabal.hs:12:1-40
                          or `PackageConfig.exposedModules',
                             imported from `PackageConfig' at src/Haskell/Docs/Cabal.hs:20:1-20
                             (and originally defined in `Cabal-1.16.0:Distribution.InstalledPackageInfo')

src/Haskell/Docs/Cabal.hs:62:7:
    Ambiguous occurrence `hiddenModules'
    It could refer to either `Distribution.InstalledPackageInfo.hiddenModules',
                             imported from `Distribution.InstalledPackageInfo' at src/Haskell/Docs/Cabal.hs:12:1-40
                          or `PackageConfig.hiddenModules',
                             imported from `PackageConfig' at src/Haskell/Docs/Cabal.hs:20:1-20
                             (and originally defined in `Cabal-1.16.0:Distribution.InstalledPackageInfo')
/usr/share/cdbs/1/class/hlibrary.mk:120: recipe for target 'build-ghc-stamp' failed
make: *** [build-ghc-stamp] Error 1

I tried a few quick hacks with no luck. It could be our version of cabal. I'd be happy to patch this but a hint would really help.

chrisdone commented 9 years ago

Hmm, haskell-docs should build with the versions specified in the GHC file. Please state your versions of ghc and cabal.

creichert commented 9 years ago

ghc - 7.6.3 cabal-install - 1.20.0.3 Cabal - 1.20.0.2

ivan-m commented 8 years ago

Is this still an issue?