HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-10.0.0.20260917GHC2024

GHC.Tc.Gen.Pat

Typechecking patterns

Synopsis

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.