summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Gen
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/Tc/Gen
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/Tc/Gen')
-rw-r--r--compiler/GHC/Tc/Gen/Sig.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Gen/Sig.hs b/compiler/GHC/Tc/Gen/Sig.hs
index bec5af03b0..34ae24d68c 100644
--- a/compiler/GHC/Tc/Gen/Sig.hs
+++ b/compiler/GHC/Tc/Gen/Sig.hs
@@ -590,7 +590,7 @@ mkPragEnv sigs binds
-- add arity only for real INLINE pragmas, not INLINABLE
= case lookupNameEnv ar_env n of
Just ar -> inl_prag { inl_sat = Just ar }
- Nothing -> warnPprTrace True (text "mkPragEnv no arity" <+> ppr n) $
+ Nothing -> warnPprTrace True "mkPragEnv no arity" (ppr n) $
-- There really should be a binding for every INLINE pragma
inl_prag
| otherwise