{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1390","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1390/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1390/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1390/events","html_url":"https://github.com/commercialhaskell/stack/issues/1390","id":118181987,"number":1390,"title":"`stack new` with `ghcjs` template doesn't initialize correctly","user":{"login":"kadoban","id":52635,"avatar_url":"https://avatars.githubusercontent.com/u/52635?v=3","gravatar_id":"","url":"https://api.github.com/users/kadoban","html_url":"https://github.com/kadoban","followers_url":"https://api.github.com/users/kadoban/followers","following_url":"https://api.github.com/users/kadoban/following{/other_user}","gists_url":"https://api.github.com/users/kadoban/gists{/gist_id}","starred_url":"https://api.github.com/users/kadoban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadoban/subscriptions","organizations_url":"https://api.github.com/users/kadoban/orgs","repos_url":"https://api.github.com/users/kadoban/repos","events_url":"https://api.github.com/users/kadoban/events{/privacy}","received_events_url":"https://api.github.com/users/kadoban/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/awaiting%20pr","name":"awaiting pr","color":"fef2c0"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/component:%20ghcjs","name":"component: ghcjs","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"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},"open_issues":78,"closed_issues":140,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2015-12-29T02:34:14Z","due_on":"2015-12-31T08:00:00Z","closed_at":null},"comments":4,"created_at":"2015-11-21T08:23:43Z","updated_at":"2015-12-30T11:26:07Z","closed_at":null,"body":"Using the `ghcjs` template with `stack new` doesn't really get you very far.\r\n\r\n**Command:** `stack new testing ghcjs`\r\n\r\n**Expected result:** A project set up named `testing` which will use the GHCJS compiler support that's been so helpfully added somewhat recently.\r\n\r\nPerhaps including something in the `stack.yaml` like the magic:\r\n```\r\ncompiler: ghcjs-0.1.0.20150924_ghc-7.10.2\r\ncompiler-check: match-exact\r\n```\r\nwould be ideal.\r\n\r\n**Actual result:**\r\n```\r\nDownloading template \"ghcjs\" to create project \"testing\" in testing/ ...\r\nWriting default config file to: /home/mud/projects/testing/stack.yaml\r\nBasing on cabal files:\r\n- ~/projects/testing/testing.cabal\r\n\r\nChecking against build plan lts-3.12\r\n\r\n* Build plan did not match your requirements:\r\n    ghcjs-base not found\r\n    - testing requires -any\r\n\r\n[... several more build plans fail to match ...]\r\n\r\nThere was no snapshot found that matched the package bounds in your .cabal files.\r\nPlease choose one of the following commands to get started.\r\n\r\n    stack init --resolver lts-3.12\r\n[... more resolver possibilities suggested ...]\r\n\r\nYou'll then need to add some extra-deps. See:\r\n\r\n    https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md#extra-deps\r\n\r\nYou can also try falling back to a dependency solver with:\r\n\r\n    stack init --solver\r\n```\r\nand no `stack.yaml` at all is created in the `testing/` directory.\r\n\r\nI think I understand why this happens, but is there any way to improve the workflow here? It would be really nice to be able to start a GHCJS project easily with `stack new`.\r\n\r\nNote that none of the suggested `init` commands give you anything that will use GHCJS, and specifying `--resolver lts-3.14` for example to `stack new` doesn't either (though that will at least make it create a `stack.yaml` file, which is something).\r\n\r\n**Version:**\r\n```\r\n$ stack --version\r\nVersion 0.1.8.0, Git revision e33dd995e292efcf8ee42e1e4c649b96232abf2e (2603 commits) x86_64\r\n```"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/167982233","html_url":"https://github.com/commercialhaskell/stack/issues/1390#issuecomment-167982233","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1390","id":167982233,"user":{"login":"nrolland","id":37239,"avatar_url":"https://avatars.githubusercontent.com/u/37239?v=3","gravatar_id":"","url":"https://api.github.com/users/nrolland","html_url":"https://github.com/nrolland","followers_url":"https://api.github.com/users/nrolland/followers","following_url":"https://api.github.com/users/nrolland/following{/other_user}","gists_url":"https://api.github.com/users/nrolland/gists{/gist_id}","starred_url":"https://api.github.com/users/nrolland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrolland/subscriptions","organizations_url":"https://api.github.com/users/nrolland/orgs","repos_url":"https://api.github.com/users/nrolland/repos","events_url":"https://api.github.com/users/nrolland/events{/privacy}","received_events_url":"https://api.github.com/users/nrolland/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T11:26:07Z","updated_at":"2015-12-30T11:26:07Z","body":"\"It should be possible to resolve this stuff once GHCJS and related packages get uploaded to hackage and added to stackage (one way or another).\"\r\n\r\nAre there any public timeframe for this ?"}}