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

Passing cabal flags #301

Closed
cocreature opened this issue Jun 14, 2015 · 3 comments
Closed

Passing cabal flags #301

cocreature opened this issue Jun 14, 2015 · 3 comments

Comments

@cocreature
Copy link
Contributor

I am trying to pass an argument, so I put

flags: { demos: true }

in my stack.yaml.
However when I try to run stack build this results in the error

AesonException "failed to parse field flags: when expecting a HashMap Text a, encountered Boolean instead"

I tried figuring out what the correct syntax should be, but I couldn't. It would be great if you could add the documentation for that.

@snoyberg
Copy link
Contributor

There's an open issue for documenting stack.yaml correctly. In the meanwhile: you need to set it up by package name, e.g.:

flags:
  package-name:
    flag-name: true

@cocreature
Copy link
Contributor Author

Thanks, added the example to the wiki.

@snoyberg
Copy link
Contributor

Thank you!

On Sun, Jun 14, 2015, 5:33 PM Moritz Kiefer [email protected]
wrote:

Closed #301 #301.


Reply to this email directly or view it on GitHub
#301 (comment).

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

No branches or pull requests

2 participants