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

Cabal init doesn't honour multiple --dependency flags #8659

Closed
fendor opened this issue Jan 9, 2023 · 1 comment · Fixed by #8663
Closed

Cabal init doesn't honour multiple --dependency flags #8659

fendor opened this issue Jan 9, 2023 · 1 comment · Fixed by #8663

Comments

@fendor
Copy link
Collaborator

fendor commented Jan 9, 2023

Describe the bug
cabal init --lib -d base -d vector should create a cabal file containing both of these dependencies.

To Reproduce
Steps to reproduce the behavior:

$ cabal init --lib -d base -d vector
$ cat test.cabal
...
    build-depends:    vector

but I'd expect:

$ cabal init --lib -d base -d vector
$ cat test.cabal
...
    build-depends:    base, vector

System information

  • cabal 3.6, cabal 3.8 and cabal HEAD
@fendor
Copy link
Collaborator Author

fendor commented Jan 9, 2023

Looking at the code-base, it seems like all occurrences of Flag [..] don't behave as intended in the option parser.
Time to document the parser >.<

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

Successfully merging a pull request may close this issue.

1 participant