HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.Tc.Gen.Match

Typecheck some Matches

  • 3 types
  • 12 values
  • Packageghc-9.14.1
  • 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 (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