Open philderbeast opened 6 months ago
The command line help could also be included in this review;
$ cabal --help | grep --perl-regexp -n 'cabal\s(?!install|build|configure|outdated|run|gen-bounds|get|fetch|update|list-bin|clean|haddock-project|haddock|init|path|test|repl|bench|sdist|upload|check|report|exec|list|info|freeze|help|user-config|unpack)\w'
9: user-config Display and update the user's global cabal configuration.
18: init Create a new cabal package.
33: haddock-project Generate Haddocks HTML documentation for the cabal project.
85: cabal COMMAND --help
116:You can edit the cabal configuration file to set defaults:
For what it is worth, my solution to the problem of achieving consistency with Stack's documentation was (1) to create a glossary (https://docs.haskellstack.org/en/stable/glossary/) and then (2) to apply it consistently to the online, in-app and in-code documentation (in that order of priority). I drew up the first version of the glossary by examining the existing documentation to see how terms were used; the most popular usage had the greatest chance of making it to the glossary, although I also wanted the glossary itself to be coherent.
I've been pulled up for being slack with proper name capitalization by pull request reviewers. I had a quick look at the docs and we could be more consistent with how we spell and markup certain common things to disambiguate what we mean, especially since
cabal
and Cabal are different things.I'm not sure what is the correct capitalization of package and project. Is it a "Cabal package" and a "Cabal project"?
cabal file
I don't think there is such a thing. Lower case cabal refers to
cabal-install:exe:cabal
. This executable works with packages and projects. So here are some better options;.cabal
file.cabal
filecabal file format
Shouldn't this be "Cabal package description,
.cabal
file, format" or ".cabal
file format"?package file
While I casually refer to
.cabal
as a package, a.tar.gz
is a package file too but containing the whole package and not just its description.Could we be more explicit, not saying "package file" without qualification? The two qualifications would be "package archive file" and "package description file".
cabal, the executable
When we refer to "cabal", the executable, perhaps mark it up as "
cabal
" instead?cabal followed by non-command text
Some of these search hits, I've already mentioned.