@@ -1065,6 +1065,11 @@ This command takes the following options:
10651065 database for searching. This is equivalent to running Haddock _
10661066 with the ``--hoogle `` flag.
10671067
1068+ .. option :: --html
1069+
1070+ Generate Haddock _ documentation in HTML format (the default). This is
1071+ equivalent to running Haddock _ with the ``--html `` flag.
1072+
10681073.. option :: --html-location=url
10691074
10701075 Specify a template for the location of HTML documentation for
@@ -1083,6 +1088,12 @@ This command takes the following options:
10831088 this option is omitted, the location for each package is obtained
10841089 using the package tool (e.g. ``ghc-pkg ``).
10851090
1091+ .. option :: --contents-location=url
1092+
1093+ Specify a template for the location for the contents page. The substitutions
1094+ (`see listing <#paths-in-the-simple-build-system >`__) are applied to the
1095+ template to obtain a location for each package.
1096+
10861097.. option :: --executables
10871098
10881099 Also run Haddock _ for the modules of all the executable programs. By default
@@ -1110,6 +1121,10 @@ This command takes the following options:
11101121 generate HTML documentation. Each entity shown in the documentation is
11111122 linked to its definition in the colourised code.
11121123
1124+ .. option :: --quickjump
1125+
1126+ Generate an index for interactive navigation of Haddock _ documentation.
1127+
11131128.. option :: --hscolour-css=path
11141129
11151130 The argument *path * denotes a CSS file, which is passed to HsColour _ as in
@@ -1118,6 +1133,16 @@ This command takes the following options:
11181133
11191134 $ runhaskell Setup.hs hscolour --css=*path*
11201135
1136+ .. option :: --for-hackage
1137+
1138+ Sets flags to generate Haddock _ documentation that is suitable for upload to
1139+ Hackage.
1140+
1141+ Equivalent to setting :option: `--hoogle `, :option: `--html `,
1142+ :option: `--html-location ` equal to ``/package/$pkg-$version/docs ``,
1143+ :option: `--contents-location ` equal to ``/package/$pkg-$version ``,
1144+ :option: `--hyperlink-source `, and :option: `--quickjump `.
1145+
11211146.. _setup-hscolour :
11221147
11231148runhaskell Setup.hs hscolour
0 commit comments