Modulecabal-install-3.12.1.0Haskell2010
Distribution.Client.CmdListBin
- 8 values
- Packagecabal-install-3.12.1.0
- Exports8
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCmdListBin.hs
Internals exposed for testing
6 declarationsThis defines what a TargetSelector means for the list-bin command.
It selects the AvailableTargets that the TargetSelector refers to,
or otherwise classifies the problem.
For the list-bin command we select the exe or flib if there is only one
and it's buildable. Fail if there are no or multiple buildable exe components.
For a TargetComponent TargetSelector, check if the component can be selected.
For the run command we just need to check it is a executable-like
(an executable, a test, or a benchmark), in addition
to the basic checks on being buildable etc.