{"action":"closed","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2459","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2459/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2459/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2459/events","html_url":"https://github.com/haskell/cabal/issues/2459","id":60295183,"number":2459,"title":"exec command doesn't work with `install --with-ghc ...`","user":{"login":"osa1","id":448274,"avatar_url":"https://avatars.githubusercontent.com/u/448274?v=3","gravatar_id":"","url":"https://api.github.com/users/osa1","html_url":"https://github.com/osa1","followers_url":"https://api.github.com/users/osa1/followers","following_url":"https://api.github.com/users/osa1/following{/other_user}","gists_url":"https://api.github.com/users/osa1/gists{/gist_id}","starred_url":"https://api.github.com/users/osa1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osa1/subscriptions","organizations_url":"https://api.github.com/users/osa1/orgs","repos_url":"https://api.github.com/users/osa1/repos","events_url":"https://api.github.com/users/osa1/events{/privacy}","received_events_url":"https://api.github.com/users/osa1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-09T03:50:05Z","updated_at":"2015-03-09T20:19:48Z","closed_at":"2015-03-09T20:19:48Z","body":"I'm trying to use `cabal exec` to install using a specific GHC binary. The problem is that it's always failing with:\r\n\r\n```\r\n    Could not find module ‘<the module it just installed>’\r\n    Use -v to see a list of the files searched for.\r\n```\r\n\r\nI'm running it like this:\r\n\r\n```\r\n$ cabal sandbox init\r\n$ cabal install --with-ghc <ghc-path>\r\n$ cabal exec <ghc-path> -- <Haskell source path>\r\n```\r\n\r\nI also tried using `cabal configure --with-ghc` but got same error."}}