From 914c355af9dfb43e0030b363500670a2100cc37d Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Thu, 2 Jan 2025 07:36:09 -0500 Subject: [PATCH] Use noticeDoc to preserve indent --- .../src/Distribution/Client/CmdTarget.hs | 4 +-- doc/cabal-commands.rst | 28 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cabal-install/src/Distribution/Client/CmdTarget.hs b/cabal-install/src/Distribution/Client/CmdTarget.hs index e3aff47909e..93554c2cc09 100644 --- a/cabal-install/src/Distribution/Client/CmdTarget.hs +++ b/cabal-install/src/Distribution/Client/CmdTarget.hs @@ -37,7 +37,7 @@ import Distribution.Simple.Command ) import Distribution.Simple.Flag (fromFlagOrDefault) import Distribution.Simple.Utils - ( notice + ( noticeDoc , safeHead , wrapText ) @@ -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] diff --git a/doc/cabal-commands.rst b/doc/cabal-commands.rst index 5a9ad9eee55..7652c2d3b03 100644 --- a/doc/cabal-commands.rst +++ b/doc/cabal-commands.rst @@ -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