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.Match

Typecheck some Matches

  • 3 types
  • 12 values
valuecheckArgCounts
  1. :: AnnoBody body
  2. => MatchGroup GhcRn (LocatedA (body GhcRn))
  3. -> TcM VisArity
#

checkArgCounts takes a [RenamedMatch] and decides whether the same number of required (aka visible) args are used in each equation. Returns the arity, the number of required args E.g. f @a True y = ... f False z = ... The MatchGroup for f has arity 2, not 3