-
Notifications
You must be signed in to change notification settings - Fork 840
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 build" (ghcjs) fails with "happy" which requires ghc compiler in path #1258
Comments
Note that the cause is that the setup script for happy hardcodes GHC. Other than a circumstance like that GHCJS builds should /not/ demand a GHC. However, given that cases like this exist, I could be persuaded to have it put the matching GHC on the path if it exists. As my other comment suggests, it could also be that we want to default to using GHC for arbitrary build-tool dependencies. I'm not sure if GHCJS could build a working |
@mgsloan So what actually is the workaround? I'm trying to setup GHCJS for some researching, but |
I've added a GHC to my PATH (at the end of the PATH). It's a ugly hack but it seems to work.
|
We should send patches to |
I use export OLDPATH=$PATH
alias stackjs='stack --stack-yaml stack-ghcjs.yaml'
alias stack7='stack --stack-yaml stack.yaml'
stack7 setup
stack7 install alex happy hscolour
PATH=`stack7 path --bin-path 2>/dev/null`:$OLDPATH
echo SETUP
stackjs setup https://github.com/tolysz/spock-ghcjs-sample/blob/master/build-lts.sh And it works fine on any global |
The next version of Stack will no longer have GHCJS support, closing. |
asked on irc:
is there a particular reason why not to have the ghc compiler in the path as well?
@mgsloan:
build log
> stack --version Version 0.1.7.0, Git revision 193b285e0dc8fd705a7d2475e5a57bb15f4a9990 (2453 commits) x86_64
The text was updated successfully, but these errors were encountered: