Skip to content

Commit af422f7

Browse files
authored
Merge pull request #3967 from kosmikus/debug-tracetree-fix
Adapt to changes in Distribution.Version.
2 parents e30ffcb + 9bf8210 commit af422f7

File tree

1 file changed

+2
-1
lines changed
  • cabal-install/Distribution/Solver/Modular

1 file changed

+2
-1
lines changed

cabal-install/Distribution/Solver/Modular/Solver.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Data.Set as S
1414
import Distribution.Version
1515

1616
import Distribution.Compiler (CompilerInfo)
17+
import Distribution.Text (display)
1718

1819
import Distribution.Solver.Types.PackagePath
1920
import Distribution.Solver.Types.PackagePreferences
@@ -201,7 +202,7 @@ instance GSimpleTree (Tree d QGoalReason) where
201202

202203
-- Show package choice
203204
goP :: QPN -> POption -> Tree d QGoalReason -> (String, SimpleTree)
204-
goP _ (POption (I ver _loc) Nothing) subtree = (showVersion ver, go subtree)
205+
goP _ (POption (I ver _loc) Nothing) subtree = (display ver, go subtree)
205206
goP (Q _ pn) (POption _ (Just pp)) subtree = (showQPN (Q pp pn), go subtree)
206207

207208
-- Show flag or stanza choice

0 commit comments

Comments
 (0)