-
Notifications
You must be signed in to change notification settings - Fork 701
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 list-bin can already list multiple binary but just refuses to #9732
Comments
Isn't the point that Are you proposing that |
Stack has a similar command that returns multiple exes;
|
This is a good point.
Perhaps under a different command? Perhaps
|
Some discussion about this in
Not sure it's all that good of an idea judging by how often people ask for an ability to get a list out of it, and I'm yet to see people excited by this idea outside the old cabal team. I'd rather there was a flag that people would apply in scripting scenarios (e.g. So, I'd prefer augmenting |
"I'm yet to see people excited by this idea outside the old cabal team" <- nobody's excited by this or asking for it because it already works, and was widely demanded, which is why the feature was implemented. I think we can add an (Remember, existing uses always may be widespread but silent, and the only people who speak up are the ones who have new complaints -- the folks happy with how it works don't hang out on the tracker looking for tickets that might change thins for them!) |
My point is very simple: people who are happy with the current behavior will be just as happy with the new behavior because they probably rely on the happy parth rather than on the exceptional path. But the opt-in strategy with a suggestion sounds fine too. |
Yes, let's please do opt-in. |
I find the command name confusing, a list command that returns one thing, the full path to an executable. What is the history there? Is it named after the
Could we please add a |
That's the |
I would also like
This conversation is definitely improvable.
|
@andreasabel: I'm confused: the https://hackage.haskell.org/package/stm-2.5.3.1/stm.cabal file only mentions a library. not exes nor tests. How come? Are you working in a larger project stm is a member package of? |
I get the following non-helpful output from the maximal verbosity level:
|
@Mikolaj wrote:
I was working on master which has a
|
This is because
In the biweekly call we agreed that |
Is this PR doing anything helpful: #9744? |
cabal list-bin
returns the path of a executable in the current project matching a specified target. E.g.The command accepts one and only one target:
The funny thing is that
all
is effectively one target, socabal list-bin all
almost works ...Combinations like
all:tests
andall:exes
give a similar result:The error lists all the matching targets so we must have a way to iterate over them!
@fendor
The text was updated successfully, but these errors were encountered: