Skip to content

Commit

Permalink
Merge pull request haskell#10163 from haskell/coot/haddock-all
Browse files Browse the repository at this point in the history
haddock-project: added `--all` switch
  • Loading branch information
coot authored Jul 4, 2024
2 parents e9d41c8 + 4ac692b commit 1837262
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| ----- | ----------- |
Expand Down
21 changes: 21 additions & 0 deletions Cabal/src/Distribution/Simple/Setup/Haddock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions changelog.d/issue-10051
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
synopsis: Added `--all` and `--haddock-all` switches to `haddock-project` subcommand
packages: cabal-install
issues: #10051
prs: #2272

0 comments on commit 1837262

Please sign in to comment.