Commit 9bf8210a authored by Andres Löh's avatar Andres Löh
Browse files

Adapt to changes in Distribution.Version.

The DEBUG_TRACETREE debugging feature of cabal-install
still had a call to 'showVersion' in it, which has been
removed by recent changes to 'Distribution.Version'.
parent e30ffcb2
......@@ -14,6 +14,7 @@ import Data.Set as S
import Distribution.Version
import Distribution.Compiler (CompilerInfo)
import Distribution.Text (display)
import Distribution.Solver.Types.PackagePath
import Distribution.Solver.Types.PackagePreferences
......@@ -201,7 +202,7 @@ instance GSimpleTree (Tree d QGoalReason) where
-- Show package choice
goP :: QPN -> POption -> Tree d QGoalReason -> (String, SimpleTree)
goP _ (POption (I ver _loc) Nothing) subtree = (showVersion ver, go subtree)
goP _ (POption (I ver _loc) Nothing) subtree = (display ver, go subtree)
goP (Q _ pn) (POption _ (Just pp)) subtree = (showQPN (Q pp pn), go subtree)
-- Show flag or stanza choice
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment