Skip to content

Commit 97fbc5d

Browse files
committed
log solver preferences only at deafening
1 parent 2c49559 commit 97fbc5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cabal-install/src/Distribution/Client/Dependency.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ import Distribution.Types.DependencySatisfaction
130130
( DependencySatisfaction (..)
131131
)
132132
import Distribution.Verbosity
133-
( normal
133+
( normal, deafening
134134
)
135135
import Distribution.Version
136136

@@ -213,9 +213,9 @@ showDepResolverParams p =
213213
(("\n " ++) . showLabeledConstraint)
214214
(depResolverConstraints p)
215215
++ "\npreferences: "
216-
++ concatMap
217-
(("\n " ++) . showPackagePreference)
218-
(depResolverPreferences p)
216+
++ if depResolverVerbosity p >= deafening
217+
then concatMap (("\n " ++) . showPackagePreference) ((depResolverPreferences p))
218+
else "\n ... increase verbosity to see"
219219
++ "\nstrategy: "
220220
++ show (depResolverPreferenceDefault p)
221221
++ "\nreorder goals: "

0 commit comments

Comments
 (0)