{"action":"created","issue":{"url":"https://api.github.com/repos/DanielG/cabal-helper/issues/24","repository_url":"https://api.github.com/repos/DanielG/cabal-helper","labels_url":"https://api.github.com/repos/DanielG/cabal-helper/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/DanielG/cabal-helper/issues/24/comments","events_url":"https://api.github.com/repos/DanielG/cabal-helper/issues/24/events","html_url":"https://github.com/DanielG/cabal-helper/issues/24","id":162548710,"number":24,"title":"Ambiguous occurance `lookupInstalledPackageId`","user":{"login":"rasendubi","id":1366419,"avatar_url":"https://avatars.githubusercontent.com/u/1366419?v=3","gravatar_id":"","url":"https://api.github.com/users/rasendubi","html_url":"https://github.com/rasendubi","followers_url":"https://api.github.com/users/rasendubi/followers","following_url":"https://api.github.com/users/rasendubi/following{/other_user}","gists_url":"https://api.github.com/users/rasendubi/gists{/gist_id}","starred_url":"https://api.github.com/users/rasendubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasendubi/subscriptions","organizations_url":"https://api.github.com/users/rasendubi/orgs","repos_url":"https://api.github.com/users/rasendubi/repos","events_url":"https://api.github.com/users/rasendubi/events{/privacy}","received_events_url":"https://api.github.com/users/rasendubi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-27T21:08:22Z","updated_at":"2016-07-06T19:34:55Z","closed_at":"2016-07-06T19:32:00Z","body":"The issue is caused by the absence of upper bounds and unqualified imports.\r\n\r\n```\r\ndrets@MBP ~/s/a/s/N/MQTT> ghc-mod check Gateway.hs \r\n[1 of 5] Compiling CabalHelper.Types ( CabalHelper/Types.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Types.o )\r\n[2 of 5] Compiling CabalHelper.Common ( CabalHelper/Common.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Common.o )\r\n[3 of 5] Compiling CabalHelper.Sandbox ( CabalHelper/Sandbox.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Sandbox.o )\r\n[4 of 5] Compiling CabalHelper.Licenses ( CabalHelper/Licenses.hs, /home/drets/.ghc-mod/cabal-helper/CabalHelper/Licenses.o )\r\n\r\nCabalHelper/Licenses.hs:53:18: error:\r\n    Ambiguous occurrence 'lookupInstalledPackageId'\r\n    It could refer to either 'Distribution.Simple.PackageIndex.lookupInstalledPackageId',\r\n                             imported from 'Distribution.Simple.PackageIndex' at CabalHelper/Licenses.hs:24:1-39\r\n                          or 'CabalHelper.Licenses.lookupInstalledPackageId',\r\n                             defined at CabalHelper/Licenses.hs:38:1\r\n\r\nCabalHelper/Licenses.hs:74:10: error:\r\n    Ambiguous occurrence 'lookupInstalledPackageId'\r\n    It could refer to either 'Distribution.Simple.PackageIndex.lookupInstalledPackageId',\r\n                             imported from 'Distribution.Simple.PackageIndex' at CabalHelper/Licenses.hs:24:1-39\r\n                          or 'CabalHelper.Licenses.lookupInstalledPackageId',\r\n                             defined at CabalHelper/Licenses.hs:38:1\r\nghc-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\r\n```"},"comment":{"url":"https://api.github.com/repos/DanielG/cabal-helper/issues/comments/230882354","html_url":"https://github.com/DanielG/cabal-helper/issues/24#issuecomment-230882354","issue_url":"https://api.github.com/repos/DanielG/cabal-helper/issues/24","id":230882354,"user":{"login":"rasendubi","id":1366419,"avatar_url":"https://avatars.githubusercontent.com/u/1366419?v=3","gravatar_id":"","url":"https://api.github.com/users/rasendubi","html_url":"https://github.com/rasendubi","followers_url":"https://api.github.com/users/rasendubi/followers","following_url":"https://api.github.com/users/rasendubi/following{/other_user}","gists_url":"https://api.github.com/users/rasendubi/gists{/gist_id}","starred_url":"https://api.github.com/users/rasendubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasendubi/subscriptions","organizations_url":"https://api.github.com/users/rasendubi/orgs","repos_url":"https://api.github.com/users/rasendubi/repos","events_url":"https://api.github.com/users/rasendubi/events{/privacy}","received_events_url":"https://api.github.com/users/rasendubi/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T19:34:55Z","updated_at":"2016-07-06T19:34:55Z","body":"Wow. That looks great!"}}
{"actor":{"display_login":"rasendubi"}}