diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2020-12-18 01:37:23 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-12-20 20:47:11 -0500 |
commit | 5eb22fa2e80a1f07ca8c1bd6af093490a7a72bbb (patch) | |
tree | 004e43c18bb1b9b6f129fefa3d9b7dcf4ba403ec /compiler | |
parent | 995a8f9d2bd0e98480a8c60498fdfff1fb8de009 (diff) | |
download | haskell-5eb22fa2e80a1f07ca8c1bd6af093490a7a72bbb.tar.gz |
Fix printing in -ddump-rule-rewrites (#18668)
The unapplied arguments were not printed out.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Core/Opt/Simplify.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Core/Opt/Simplify.hs b/compiler/GHC/Core/Opt/Simplify.hs index 22d0bb47c0..fc3373419e 100644 --- a/compiler/GHC/Core/Opt/Simplify.hs +++ b/compiler/GHC/Core/Opt/Simplify.hs @@ -2182,7 +2182,8 @@ tryRules env rules fn args call_cont [ text "Rule:" <+> ftext (ruleName rule) , text "Module:" <+> printRuleModule rule , text "Before:" <+> hang (ppr fn) 2 (sep (map ppr args)) - , text "After: " <+> pprCoreExpr rule_rhs + , text "After: " <+> hang (pprCoreExpr rule_rhs) 2 + (sep $ map ppr $ drop (ruleArity rule) args) , text "Cont: " <+> ppr call_cont ] | dopt Opt_D_dump_rule_firings dflags |