Skip to content

Commit

Permalink
Use noticeDoc to preserve indent
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Jan 2, 2025
1 parent a3c9758 commit 914c355
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions cabal-install/src/Distribution/Client/CmdTarget.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import Distribution.Simple.Command
)
import Distribution.Simple.Flag (fromFlagOrDefault)
import Distribution.Simple.Utils
( notice
( noticeDoc
, safeHead
, wrapText
)
Expand Down Expand Up @@ -185,7 +185,7 @@ reportBuildTargetProblems verbosity = reportTargetProblems verbosity "target"

printTargetForms :: Verbosity -> TargetsMap -> ElaboratedInstallPlan -> IO ()
printTargetForms verbosity targets elaboratedPlan =
notice verbosity . render $
noticeDoc verbosity $
vcat
[ text "Fully qualified target forms" Pretty.<> colon
, nest 1 $ vcat [text "-" <+> text tf | tf <- targetForms]
Expand Down
28 changes: 14 additions & 14 deletions doc/cabal-commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -752,20 +752,20 @@ Any target forms except for a script target can be used with ``cabal target``.
$ cabal target all:tests
...
Fully qualified target forms:
- Cabal-tests:test:check-tests
- Cabal-tests:test:custom-setup-tests
- Cabal-tests:test:hackage-tests
- Cabal-tests:test:no-thunks-test
- Cabal-tests:test:parser-tests
- Cabal-tests:test:rpmvercmp
- Cabal-tests:test:unit-tests
- cabal-benchmarks:test:cabal-benchmarks
- cabal-install-solver:test:unit-tests
- cabal-install:test:integration-tests2
- cabal-install:test:long-tests
- cabal-install:test:mem-use-tests
- cabal-install:test:unit-tests
- solver-benchmarks:test:unit-tests
- Cabal-tests:test:check-tests
- Cabal-tests:test:custom-setup-tests
- Cabal-tests:test:hackage-tests
- Cabal-tests:test:no-thunks-test
- Cabal-tests:test:parser-tests
- Cabal-tests:test:rpmvercmp
- Cabal-tests:test:unit-tests
- cabal-benchmarks:test:cabal-benchmarks
- cabal-install-solver:test:unit-tests
- cabal-install:test:integration-tests2
- cabal-install:test:long-tests
- cabal-install:test:mem-use-tests
- cabal-install:test:unit-tests
- solver-benchmarks:test:unit-tests
For a package, all, module or filepath target, cabal target [TARGETS] will
**only** show ``libs`` and ``exes`` of the [TARGETS]. To also show tests and
Expand Down

0 comments on commit 914c355

Please sign in to comment.