ghc-9.15: The GHC API
Safe HaskellNone
LanguageGHC2024

GHC.Core.TyCon.RecWalk

Synopsis

Recursion breaking

data RecTcChecker Source #

Keeps track of how many times we have unwrapped various TyCons, to avoid falling into a loop.

See Note [Expanding newtypes and products].

Instances

Instances details
Outputable RecTcChecker Source # 
Instance details

Defined in GHC.Core.TyCon.RecWalk

defaultRecTcMaxBound :: Int Source #

The default upper bound (100) for the number of times a RecTcChecker is allowed to encounter each TyCon.

setRecTcMaxBound :: Int -> RecTcChecker -> RecTcChecker Source #

Change the upper bound for the number of times a RecTcChecker is allowed to encounter each TyCon.