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

Feature Request: Expose Cabal flags and GHC options in ls dependencies json #5372

Open
aherrmann opened this issue Aug 18, 2020 · 0 comments

Comments

@aherrmann
Copy link
Contributor

Feature Request

I would like the output of stack ls dependencies json to contain Cabal flags and GHC options that are defined in the snapshot. E.g. Cabal flags and GHC options that are defined as follows in a custom snapshot:

flags:
  unordered-containers:
    debug: true
ghc-options:
  warp:
  - -O2

This should take flags like --static (if implemented) into account.

Motivation

stack ls dependencies json is very useful for build tools that would like to call out to stack to determine how to build Stackage dependencies. Cabal flags can influence the dependency graph and can be required to build a package correctly on a given platform, similarly GHC options can be required to build a package correctly. However, currently stack does not expose these flags or options. The user of the tool that consumes stack ls dependencies json will have to repeat this configuration in some form, which is cumbersome and error-prone.

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

2 participants