haskell / haskell/cabal

Add a command to list available build targets

Open
#4,070 21 comments 20 reactions 0 assignees View on GitHub
cabal-install: v2-build system status: consider closing type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Given that `cabal.project` can list additional local components, each with its own cabal file, it is not always clear what the appropriate build targets are.

So perhaps add a command that will list the targets, e.g.

```
cabal list-targets

component Cabal
cabal (lib)
cabal:unit-tests (test-suite)
cabal:parser-tests (test-suite)
cabal:parser-hackage-tests (test-suite)
...
component cabal-install
cabal-install:cabal (exe)
cabal-install:unit-tests (test-suite)
,,,
```

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.