Skip to content
Snippets Groups Projects
Unverified Commit 1837262b authored by Marcin Szamotulski's avatar Marcin Szamotulski Committed by GitHub
Browse files

Merge pull request #10163 from haskell/coot/haddock-all

haddock-project: added `--all` switch
parents e9d41c87 4ac692bb
No related branches found
No related tags found
No related merge requests found
Pipeline #97796 passed
......@@ -344,7 +344,7 @@ description: {
}
```
Only the `synopsis` field is actually required, but you should also set the others where applicable.
Only the `synopsis` and `prs` fields are required, but you should also set the others where applicable.
| Field | Description |
| ----- | ----------- |
......
......@@ -584,6 +584,27 @@ haddockProjectOptions _showOrParseArgs =
haddockProjectForeignLibs
(\v flags -> flags{haddockProjectForeignLibs = v})
trueArg
, option
""
["all", "haddock-all"]
"Run haddock for all targets"
( \f ->
allFlags
[ haddockProjectExecutables f
, haddockProjectTestSuites f
, haddockProjectBenchmarks f
, haddockProjectForeignLibs f
]
)
( \v flags ->
flags
{ haddockProjectExecutables = v
, haddockProjectTestSuites = v
, haddockProjectBenchmarks = v
, haddockProjectForeignLibs = v
}
)
trueArg
, option
""
["internal"]
......
synopsis: Added `--all` and `--haddock-all` switches to `haddock-project` subcommand
packages: cabal-install
issues: #10051
prs: #2272
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment