HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.