{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/498","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/498/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/498/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/498","id":88046371,"number":498,"title":"using ghc-mod with stack","user":{"login":"jbpotonnier","id":368382,"avatar_url":"https://avatars.githubusercontent.com/u/368382?v=3","gravatar_id":"","url":"https://api.github.com/users/jbpotonnier","html_url":"https://github.com/jbpotonnier","followers_url":"https://api.github.com/users/jbpotonnier/followers","following_url":"https://api.github.com/users/jbpotonnier/following{/other_user}","gists_url":"https://api.github.com/users/jbpotonnier/gists{/gist_id}","starred_url":"https://api.github.com/users/jbpotonnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbpotonnier/subscriptions","organizations_url":"https://api.github.com/users/jbpotonnier/orgs","repos_url":"https://api.github.com/users/jbpotonnier/repos","events_url":"https://api.github.com/users/jbpotonnier/events{/privacy}","received_events_url":"https://api.github.com/users/jbpotonnier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/milestones/4","html_url":"https://github.com/kazu-yamamoto/ghc-mod/milestones/v5.4.0.0","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/milestones/4/labels","id":1254756,"number":4,"title":"v5.4.0.0","description":"","creator":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":4,"state":"open","created_at":"2015-08-14T07:17:57Z","updated_at":"2015-09-02T05:22:08Z","due_on":"2015-09-03T22:00:00Z","closed_at":null},"comments":39,"created_at":"2015-06-13T18:41:10Z","updated_at":"2015-09-02T12:18:31Z","closed_at":null,"body":"I'm using ghc-mod through Atom editor (https://github.com/atom-haskell/haskell-ghc-mod)\r\nI tried to make it work using the new stack tool (https://github.com/commercialhaskell/stack)\r\nI could not make ghc-mod work with a stack installation, because it cannot find ghc, or my installed packages.\r\n\r\n* I tried adding `--with-ghc` option without succes:\r\n```\r\n» ghc-mod\r\nuser error (ghc not found)\r\n```\r\n\r\n* Then I added ghc to my path, but It did not work. I'm stuck with cabal errors:\r\n```\r\n» export PATH=$PATH:~/.stack/programs/x86_64-osx/ghc-7.8.4/bin\r\nlaunching operating system process `cabal configure` failed: cabal configure (exit 1)\r\ncabal: At least the following dependencies are missing:\r\nrandom-shuffle ==0.0.*, text ==1.2.*\r\n```\r\n\r\nIt cannot see some dependencies of my project.\r\n\r\n* Strangely enough, ghc-mod  seem to find ghc when I invoke it outside of my project directory\r\n```\r\n» ghc-mod check incubator/dvorak/Main.hs\r\nincubator/dvorak/Main.hs:14:8:Could not find module ‘System.Random.Shuffle’Use -v to see a list of the files searched for.\r\nincubator/dvorak/Main.hs:13:8:Could not find module ‘Data.Text.Encoding’Use -v to see a list of the files searched for.\r\nincubator/dvorak/Main.hs:12:8:Could not find module ‘Data.Text’Perhaps you meant Data.Set (from containers-0.5.5.1)Use -v to see a list of the files searched for.\r\n```\r\nYou can read the initial stack issue here https://github.com/commercialhaskell/stack/issues/273"},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/137052364","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/498#issuecomment-137052364","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/498","id":137052364,"user":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T12:18:31Z","updated_at":"2015-09-02T12:18:31Z","body":"And you have a stack.yaml file in the same directory as the cabal file? (IIRC stack also supports multi file projects which we don't yet)"}}