summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/GHC/Core/TyCon/RecWalk.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/GHC/Core/TyCon/RecWalk.hs b/compiler/GHC/Core/TyCon/RecWalk.hs
index a472cf65bb..95363393a2 100644
--- a/compiler/GHC/Core/TyCon/RecWalk.hs
+++ b/compiler/GHC/Core/TyCon/RecWalk.hs
@@ -20,6 +20,7 @@ import GHC.Prelude
import GHC.Core.TyCon
import GHC.Core.TyCon.Env
+import GHC.Utils.Outputable
{-
************************************************************************
@@ -72,6 +73,9 @@ data RecTcChecker = RC !Int (TyConEnv Int)
-- The upper bound, and the number of times
-- we have encountered each TyCon
+instance Outputable RecTcChecker where
+ ppr (RC n env) = text "RC:" <> int n <+> ppr env
+
-- | Initialise a 'RecTcChecker' with 'defaultRecTcMaxBound'.
initRecTc :: RecTcChecker
initRecTc = RC defaultRecTcMaxBound emptyTyConEnv