We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20aa401 commit f5a1571Copy full SHA for f5a1571
cabal-install-solver/src/Distribution/Solver/Types/SolverId.hs
@@ -9,6 +9,8 @@ import Distribution.Solver.Compat.Prelude
9
import Prelude ()
10
11
import Distribution.Package (PackageId, Package(..), UnitId)
12
+import Distribution.Pretty (Pretty (..))
13
+import Text.PrettyPrint (parens)
14
15
-- | The solver can produce references to existing packages or
16
-- packages we plan to install. Unlike 'ConfiguredId' we don't
@@ -27,3 +29,7 @@ instance Show SolverId where
27
29
28
30
instance Package SolverId where
31
packageId = solverSrcId
32
+
33
+instance Pretty SolverId where
34
+ pretty (PreExistingId pkg unitId) = pretty pkg <+> parens (pretty unitId)
35
+ pretty (PlannedId pkg) = pretty pkg
0 commit comments