HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

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