Ambiguous occurance `lookupInstalledPackageId`
rasendubi opened this issue · 2 comments
rasendubi commented
The issue is caused by the absence of upper bounds and unqualified imports.
drets@MBP ~/s/a/s/N/MQTT> ghc-mod check Gateway.hs
[1 of 5] Compiling CabalHelper.Types ( CabalHelper/Types.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Types.o )
[2 of 5] Compiling CabalHelper.Common ( CabalHelper/Common.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Common.o )
[3 of 5] Compiling CabalHelper.Sandbox ( CabalHelper/Sandbox.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Sandbox.o )
[4 of 5] Compiling CabalHelper.Licenses ( CabalHelper/Licenses.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Licenses.o )
CabalHelper/Licenses.hs:53:18: error:
Ambiguous occurrence 'lookupInstalledPackageId'
It could refer to either 'Distribution.Simple.PackageIndex.lookupInstalledPackageId',
imported from 'Distribution.Simple.PackageIndex' at CabalHelper/Licenses.hs:24:1-39
or 'CabalHelper.Licenses.lookupInstalledPackageId',
defined at CabalHelper/Licenses.hs:38:1
CabalHelper/Licenses.hs:74:10: error:
Ambiguous occurrence 'lookupInstalledPackageId'
It could refer to either 'Distribution.Simple.PackageIndex.lookupInstalledPackageId',
imported from 'Distribution.Simple.PackageIndex' at CabalHelper/Licenses.hs:24:1-39
or 'CabalHelper.Licenses.lookupInstalledPackageId',
defined at CabalHelper/Licenses.hs:38:1
ghc-mod: readCreateProcess: /home/drets/.stack/snapshots/x86_64-linux-nix/lts-6.1/7.10.3/libexec/cabal-helper-wrapper "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "/home/drets/src/arachne" "/home/drets/src/arachne/dist" "package-db-stack" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (exit 1): failed
DanielG commented
Should be fixed now. I also uploaded new package revisions to hackage for all older versions. See 3f13096...master
rasendubi commented
Wow. That looks great!