summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Coercion
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-01-05 19:58:05 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-01-11 19:43:22 -0500
commit23d215fcb62c8bfe8d56396a0c9718a72ac0037b (patch)
tree520a04b518f1898c7c6685679aafafbb8f1d5942 /compiler/GHC/Core/Coercion
parent49731fed69cb67ebaa3481b6ed5395ccd760c051 (diff)
downloadhaskell-23d215fcb62c8bfe8d56396a0c9718a72ac0037b.tar.gz
warnPprTrace: pass separately the reason
This makes it more similar to pprTrace, pprPanic etc.
Diffstat (limited to 'compiler/GHC/Core/Coercion')
-rw-r--r--compiler/GHC/Core/Coercion/Opt.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Core/Coercion/Opt.hs b/compiler/GHC/Core/Coercion/Opt.hs
index 4be4441682..041be10e3b 100644
--- a/compiler/GHC/Core/Coercion/Opt.hs
+++ b/compiler/GHC/Core/Coercion/Opt.hs
@@ -296,7 +296,8 @@ opt_co4 env sym rep r (CoVarCo cv)
cv1 = case lookupInScope (lcInScopeSet env) cv of
Just cv1 -> cv1
Nothing -> warnPprTrace True
- (text "opt_co: not in scope:" <+> ppr cv $$ ppr env)
+ "opt_co: not in scope"
+ (ppr cv $$ ppr env)
cv
-- cv1 might have a substituted kind!