Skip to content

Commit 20547b5

Browse files
sheafMikolaj
authored andcommitted
Mention that build-type: Hooks also uses custom-setup stanza
1 parent 8bde3a6 commit 20547b5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

doc/cabal-package-description-file.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,10 +2869,13 @@ Declaring a ``custom-setup`` stanza also enables the generation of
28692869
:synopsis: Build information for ``Custom`` and ``Hooks`` build types
28702870
:since: 1.24
28712871

2872-
A :pkg-section:`custom-setup` stanza is required for
2873-
:pkg-field:`build-type` ``Custom`` and will be ignored (with a warning) for
2874-
other build types. The stanza contains information needed for the compilation
2875-
of custom ``Setup.hs`` scripts or ``SetupHooks.hs`` hooks modules. For example:
2872+
A :pkg-section:`custom-setup` stanza is required for ``Custom`` and ``Hooks``
2873+
:pkg-field:`build-type`, and will be ignored (with a warning)
2874+
for other build types.
2875+
2876+
The stanza contains information needed for the compilation
2877+
of custom ``Setup.hs`` scripts, and of ``SetupHooks.hs`` hooks.
2878+
For example:
28762879

28772880
::
28782881

@@ -2884,7 +2887,7 @@ Declaring a ``custom-setup`` stanza also enables the generation of
28842887
.. pkg-field:: setup-depends: package list
28852888
:since: 1.24
28862889

2887-
The dependencies needed to compile ``Setup.hs``. See the
2890+
The dependencies needed to compile ``Setup.hs`` or ``SetupHooks.hs``. See the
28882891
:pkg-field:`build-depends` field for a description of the syntax expected by
28892892
this field.
28902893

0 commit comments

Comments
 (0)