summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-04-19 11:57:37 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-05-29 01:39:19 -0400
commitbbeb2389596df61ace5778ec580895ea32cc3c6f (patch)
treefa5dff43ea17e54fa38fec6947c8299103c4460c
parentf10d11fa49fa9a7a506c4fdbdf86521c2a8d3495 (diff)
downloadhaskell-bbeb2389596df61ace5778ec580895ea32cc3c6f.tar.gz
CoreToStg: Add Outputable ArgInfo instance
-rw-r--r--compiler/GHC/CoreToStg/Prep.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/GHC/CoreToStg/Prep.hs b/compiler/GHC/CoreToStg/Prep.hs
index 62fd46ff4c..32bbfff214 100644
--- a/compiler/GHC/CoreToStg/Prep.hs
+++ b/compiler/GHC/CoreToStg/Prep.hs
@@ -760,7 +760,13 @@ data ArgInfo = CpeApp CoreArg
| CpeCast Coercion
| CpeTick (Tickish Id)
-{- Note [runRW arg]
+instance Outputable ArgInfo where
+ ppr (CpeApp arg) = text "app" <+> ppr arg
+ ppr (CpeCast co) = text "cast" <+> ppr co
+ ppr (CpeTick tick) = text "tick" <+> ppr tick
+
+{-
+ Note [runRW arg]
~~~~~~~~~~~~~~~~~~~
If we got, say
runRW# (case bot of {})