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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Tc.Gen.Pat

Typechecking patterns

  • 1 type
  • 8 values

Line the arguments of a ConPat up against the TyVarBinders of its ConLike, returning the type arguments with the binders they instantiate, and the remaining value arguments.

See Note [Zipping ConPat arguments with TyVarBinders]

Precondition: check_con_pat_arity has passed for these arguments, so that we never run out of patterns while a required binder remains.