{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/625","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/625/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/625/events","html_url":"https://github.com/commercialhaskell/stack/pull/625","id":95761016,"number":625,"title":"Improve `stack setup --help` output.","user":{"login":"ntc2","id":16421,"avatar_url":"https://avatars.githubusercontent.com/u/16421?v=3","gravatar_id":"","url":"https://api.github.com/users/ntc2","html_url":"https://github.com/ntc2","followers_url":"https://api.github.com/users/ntc2/followers","following_url":"https://api.github.com/users/ntc2/following{/other_user}","gists_url":"https://api.github.com/users/ntc2/gists{/gist_id}","starred_url":"https://api.github.com/users/ntc2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntc2/subscriptions","organizations_url":"https://api.github.com/users/ntc2/orgs","repos_url":"https://api.github.com/users/ntc2/repos","events_url":"https://api.github.com/users/ntc2/events{/privacy}","received_events_url":"https://api.github.com/users/ntc2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-17T23:01:57Z","updated_at":"2015-07-17T23:05:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/commercialhaskell/stack/pulls/625","html_url":"https://github.com/commercialhaskell/stack/pull/625","diff_url":"https://github.com/commercialhaskell/stack/pull/625.diff","patch_url":"https://github.com/commercialhaskell/stack/pull/625.patch"},"body":"It was not clear to me what `VERSION` meant -- it had no documentation\r\n-- so I changed it to `GHC_MAJOR_VERSION` and added documentation.\r\n\r\nBefore:\r\n\r\n    $ stack setup --help\r\n    Usage: stack setup [VERSION] ([--reinstall] | [--no-reinstall])\r\n      Get the appropriate ghc for your project\r\n\r\n    Available options:\r\n      --reinstall              Enable Reinstall GHC, even if available (implies\r\n                               no-system-ghc)\r\n      --no-reinstall           Disable Reinstall GHC, even if available (implies\r\n                               no-system-ghc)\r\n\r\nAfter:\r\n\r\n    $ stack setup --help\r\n    Usage: stack setup [GHC_MAJOR_VERSION] ([--reinstall] | [--no-reinstall])\r\n      Get the appropriate GHC for your project\r\n\r\n    Available options:\r\n      GHC_MAJOR_VERSION        Major version of GHC to install, e.g. 7.10. The\r\n                               default is to install the version implied by the\r\n                               resolver.\r\n      --reinstall              Enable Reinstall GHC, even if available (implies\r\n                               no-system-ghc)\r\n      --no-reinstall           Disable Reinstall GHC, even if available (implies\r\n                               no-system-ghc)\r\n\r\nRelated, I was also surprised that e.g. `stack setup 7.10` fails when `STACK_YAML` points to a broken stack.yaml file. Would it make sense for `stack setup` to ignore the `STACK_YAML` when an explicit GHC version is specified?"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/122440756","html_url":"https://github.com/commercialhaskell/stack/pull/625#issuecomment-122440756","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/625","id":122440756,"user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T23:05:10Z","updated_at":"2015-07-17T23:05:10Z","body":"> Would it make sense for stack setup to ignore the STACK_YAML when an explicit GHC version is specified?\r\n\r\nI don't think so. It's very likely that the stack.yaml file will include settings in the future for controlling where GHC is installed from."}}