HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Moduleghc-10.0.0.20260917GHC2024

GHC.Tc.Zonk.TcType

Zonking types within the typechecker.

Distinct from the final zonking pass in GHC.Tc.Zonk.Type; see Note [Module structure for zonking] in GHC.Tc.Zonk.Type.

  • 45 values

Zonking (within the typechecker)

0 declarations

The ZonkM monad and ZonkGblEnv

Zonking types

Zonking TyCons

FreeVars

Zonking CoVars and Ids

valuezonkId :: TcId -> ZonkM TcId
#

zonkId is used *during* typechecking just to zonk the Id's type

Zonking skolem info

Zonking constraints

Rewriter sets

3 declarations

Zonk a rewriter set; if a coercion hole in the set has been filled, find all the free un-filled coercion holes in the coercion that fills it

Coercion holes

3 declarations

Tidying

5 declarations

Zonk & tidy

Writing to metavariables

2 declarations

Handling coercion holes

1 declaration

Debugging-only! Check that a coercion is appropriate for filling a hole. (The hole itself is needed only for printing.)

Always returns the checked coercion, but this return value is necessary so that the input coercion is forced only when the output is forced.