{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/302","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/302/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/302/events","html_url":"https://github.com/commercialhaskell/stack/issues/302","id":88195641,"number":302,"title":"User test -- don't know how to configure stack.yaml to download dependencies","user":{"login":"kevinsullivan","id":2771957,"avatar_url":"https://avatars.githubusercontent.com/u/2771957?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsullivan","html_url":"https://github.com/kevinsullivan","followers_url":"https://api.github.com/users/kevinsullivan/followers","following_url":"https://api.github.com/users/kevinsullivan/following{/other_user}","gists_url":"https://api.github.com/users/kevinsullivan/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsullivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsullivan/subscriptions","organizations_url":"https://api.github.com/users/kevinsullivan/orgs","repos_url":"https://api.github.com/users/kevinsullivan/repos","events_url":"https://api.github.com/users/kevinsullivan/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsullivan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-14T14:43:50Z","updated_at":"2015-06-14T20:33:29Z","closed_at":null,"body":"Hi. I can serve as an articulate new user. I'm evaluating languages and environments for possible use in an intro CS class this fall. I've so far stayed away from Haskell because of the complexity of getting it running properly on multiple platforms. Stack looks  promising. So far this AM I have it running on both Windows and a OS X. \r\n\r\nHere's where I'm now stuck: I want to use stack to compile and run a single-file Haskell program that depends on a library (here Graphics.UI.Gtk). I don't quite know how to get stack to download and install this dependency. In particular, I'm not sure quite how to configure stack.yaml so that \"stack build\" will do the right thing. If someone could take just a few seconds to tell me what changes to make to the default (empty) stack.yaml, I'd  appreciate it. The answer could perhaps also go into the nacent Wiki page on the stack.yaml file."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/111874496","html_url":"https://github.com/commercialhaskell/stack/issues/302#issuecomment-111874496","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/302","id":111874496,"user":{"login":"kevinsullivan","id":2771957,"avatar_url":"https://avatars.githubusercontent.com/u/2771957?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsullivan","html_url":"https://github.com/kevinsullivan","followers_url":"https://api.github.com/users/kevinsullivan/followers","following_url":"https://api.github.com/users/kevinsullivan/following{/other_user}","gists_url":"https://api.github.com/users/kevinsullivan/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsullivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsullivan/subscriptions","organizations_url":"https://api.github.com/users/kevinsullivan/orgs","repos_url":"https://api.github.com/users/kevinsullivan/repos","events_url":"https://api.github.com/users/kevinsullivan/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsullivan/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T20:33:29Z","updated_at":"2015-06-14T20:33:29Z","body":"Thanks. My understanding was that I would enter information into stack.yaml to specify packages on which my code depends, and that stack would then download and install those required packages. Is this correct?\r\n\r\nOn the other hand, in response to your suggestion, I tried explicitly installing the \"gtk\" library and then running \"stack deps gtk\" (not \"stack install gtk\"). It looked like it might work, but it failed with \"Cannot find gtk2hsC2hs ... Please install `gtk2hs-buildtools` first and check that the install directory is in your PATH.\"\r\n\r\nI am not certain how to extend my path to point to the newly installed files. Where are they?\r\n\r\nI went ahead anyway and ran \"stack deps gtkhs-buildtools\" and that seems to have worked without error.\r\n\r\nI then retried \"stack deps gtk.\" It made more progress but eventually failed with \"setup.exe: The program pkg-config version >=0.9.0 is required but it could not be found.\"\r\n\r\nI'm assuming it's not found because I haven't set my path.\r\n\r\nAll of this is on Windows 7, by the way.\r\n\r\n\r\n"}}