Closed philderbeast closed 1 month ago
We get no output with non-existent output formats:
$ stack ls dependencies toml
$ stack ls dependencies yaml
We get no output with a valid command followed by junk;
$ stack ls dependencies text lorem-ipsum
$ stack ls dependencies lorem-ipsum
It is not well documented (especially in-app), but TARGET
can be specified multiple times - https://docs.haskellstack.org/en/latest/build_command/#target-syntax.
If a specified target (eg lorem-ipsum
, toml
, yaml
, text
, cabal
- as in your examples) does not exist in a project, then there are no dependencies to list.
An alternative would be to throw an error, but the design choice is to return a null result.
EDIT: The online help for each of the sub-sub-commands is here: https://docs.haskellstack.org/en/stable/ls_command/#the-stack-ls-dependencies-command
The documentation has been improved, online and in-app.
I can trip up
stack ls dependencies
so that it doesn't output any dependencies by giving it a combination of 2+ output formats ("Available commands"):