Make `cabal check` supports targets (was cabal check all/local packages in a project)
Open
attention: pr-welcome
cabal-install: cmd/check
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
I have a project with multiple (indeed, many) packages. I would like to `cabal check` them in CI in the same way that I build them, test them, generate their haddocks, etc., i.e. using `cabal all`. However, `cabal check` doesn’t accept any arguments, and in fact requires me to be in the same directory as the .cabal file for the package i want to check.
Likewise, from the root of my project, if I want to `cabal check` some specific package, I have to first `cd` to its directory, because `cabal check ` isn’t accepted.
1. `cd` somewhere in a project other than where the `.cabal` file for the package you want to check lives.
2. `cabal check `
Contributor guide
Assessment
This issue has not been assessed yet.