Skip to content

Commit

Permalink
Merge pull request haskell#8237 from ffaf1/doc-cabal-check
Browse files Browse the repository at this point in the history
Document `cabal check` in the user guide
  • Loading branch information
mergify[bot] authored Jun 24, 2022
2 parents fd6de6b + 27ee4ff commit 8f6af47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.d/pr-8237
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
synopsis: Document `cabal check` in the user guide
packages: cabal-install
prs: #8237
16 changes: 16 additions & 0 deletions doc/cabal-commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,22 @@ you will have access to its quickjump index.
The generated landing page will contain one tree of all modules per local
package.

cabal check
-----------

``cabal check [FLAGS]`` checks the package for common mistakes (e.g.: if
it is missing important fields like ``synopsis``, if it is using
tricky GHC options, etc.).

Run ``cabal check`` in the folder where your ``.cabal`` package file is.

.. option:: -v, --verbose[=n]

Set verbosity level (0–3, default is 1).

``cabal check`` mimics Hackage's requirements: if no error or warning
is reported, Hackage should accept your package.

cabal exec
----------

Expand Down

0 comments on commit 8f6af47

Please sign in to comment.