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 672bac4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 All @@ -61,7 +61,7 @@ targetCommand =
Just . const . render $
vcat
[ intro
, vcat $ punctuate (text "\n") [targetForms, ctypes, Pretty.empty]
, vcat [targetForms, ctypes, Pretty.empty]
, caution
]
, commandNotes = Just $ \pname -> render $ examples pname
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

0 comments on commit 672bac4

Please sign in to comment.