-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stack new
with ghcjs
template doesn't initialize correctly
#1390
Comments
Thanks for the detailed issue! Indeed, I'm aware of the problem and should have created an issue for this. One issue is that many packages are buildable with both GHC and GHCJS - there isn't the metadata to ensure that it should be initialized as a GHCJS project. Here's some old WIP changes I had to resolve this https://gist.github.com/mgsloan/e50dcf2318347a050fe5 . The commented out approach was to look for Quite a bit of hassle just to get I've got other fish to fry right now - PRs welcome |
I've been thinking about this off and on a bit, some thoughts:
|
Certainly a reasonable idea. I don't think we're going to do stack.yaml configuration inheritance in general (#1375), but we could certainly consider supporting some subset of the fields for this purpose.
The only "official" version of GHCJS as far as stack is concerned is 0.1.0, a.k.a. old base. The list is here: https://github.com/fpco/stackage-content/blob/master/stack/stack-setup-2.yaml#L221 It is true that it'll be tough to pick a GHCJS version, because we don't have stackage snapshots that contain info about packages like 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). |
"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)." Are there any public timeframe for this ? |
Nope, hopefully soon, but I have no idea. |
Is there any workaround to this problem? |
The next version of Stack will no longer have GHCJS support, closing. |
Using the
ghcjs
template withstack new
doesn't really get you very far.Command:
stack new testing ghcjs
Expected result: A project set up named
testing
which will use the GHCJS compiler support that's been so helpfully added somewhat recently.Perhaps including something in the
stack.yaml
like the magic:would be ideal.
Actual result:
and no
stack.yaml
at all is created in thetesting/
directory.I 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
.Note that none of the suggested
init
commands give you anything that will use GHCJS, and specifying--resolver lts-3.14
for example tostack new
doesn't either (though that will at least make it create astack.yaml
file, which is something).Version:
The text was updated successfully, but these errors were encountered: