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

Typecheck some Matches

Synopsis
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