Skip to content
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

Custom flags for stack.yaml and stack command line tool #2597

Closed
mchaver opened this issue Sep 15, 2016 · 2 comments
Closed

Custom flags for stack.yaml and stack command line tool #2597

mchaver opened this issue Sep 15, 2016 · 2 comments

Comments

@mchaver
Copy link

mchaver commented Sep 15, 2016

I may be mistaken but it seems like this doesn't exist. Sometimes I make multiple stack.yaml files for differing package dependencies, different compilers, etc., but it involves a lot of repetition and shared similarities must be maintained. It would be better if I could make one stack.yaml file and have some set of flags for specific behavior depending on values I pass to stack at the command line.

A simple example is ghc vs ghcjs. Sometimes I want extra packages specifically for ghcjs so it would be nice if setup a single stack.yaml that says if I use a ghc flag it will compile the package with ghc and install one set of pacakges, if I use a flag for ghcjs, it will compile with ghcjs, a set of packages for both compilers and a set of packages for just ghcjs.

Another use case would be testing one package against different versions of a package.

@harendra-kumar
Copy link
Collaborator

#2559 may be the issue you are looking for.

@mgsloan
Copy link
Contributor

mgsloan commented Sep 26, 2016

Yes, this has been discussed quite a bit, but there is not yet a clear implementation path. Along with #2559, see also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants