haskell / haskell/cabal

`cabal list-bin` should not require a target when there is an obvious default.

Open
#9,714 0 comments 4 reactions 0 assignees View on GitHub
attention: pr-welcome cabal-install: cmd/list-bin type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Invoking `cabal list-bin` should just pick the obvious default when possible.**

If there is a cabal file with a single executable it seems like an obvious choice to report the path for this target even if it's not explicitly specified.

Or in other words, in cases where `cabal run` just works, I would expect `list-bin` to also just work. But for some reason they differ in this regard.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.