HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.Tc.Gen.Match

Typecheck some Matches

  • 3 types
  • 12 values
  • Packageghc-9.10.3
  • Exports15
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceMatch.hs
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 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