summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-12-27 10:14:42 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-24 05:37:52 -0500
commitbe701cc64f0ff78aa50bcd7293d8692dc1ba6c85 (patch)
tree9b4d24972b0eff4d6007405efd53cadf6ad27d30
parentada29f5ca5a567b69713f08feac9ee4f247de117 (diff)
downloadhaskell-be701cc64f0ff78aa50bcd7293d8692dc1ba6c85.tar.gz
Debug: Print full NodeKey when pretty printing ModuleGraphNode
This is helpful when debugging multiple component issues.
-rw-r--r--compiler/GHC/Unit/Module/Graph.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Unit/Module/Graph.hs b/compiler/GHC/Unit/Module/Graph.hs
index 4ae489d631..3de0bd2aee 100644
--- a/compiler/GHC/Unit/Module/Graph.hs
+++ b/compiler/GHC/Unit/Module/Graph.hs
@@ -100,7 +100,7 @@ moduleGraphNodeUnitId mgn =
instance Outputable ModuleGraphNode where
ppr = \case
InstantiationNode _ iuid -> ppr iuid
- ModuleNode nks ms -> ppr (ms_mnwib ms) <+> ppr nks
+ ModuleNode nks ms -> ppr (msKey ms) <+> ppr nks
LinkNode uid _ -> text "LN:" <+> ppr uid
instance Eq ModuleGraphNode where