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-lib-parser-9.14.1.20251220GHC2021

GHC.Tc.Errors.Hole.FitTypes

  • 4 types
  • 2 values
datadata TcHoleFit
#

HoleFit is the type we use for valid hole fits. It contains the element that was checked, the Id of that element as found by tcLookup, and the refinement level of the fit, which is the number of extra argument holes that this fit uses (e.g. if hfRefLvl is 2, the fit is for `Id _ _`).

Constructors

Instances3Eq, Ord, Outputable
  • Eq TcHoleFitDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Tc.Errors.Hole.FitTypes
  • Ord TcHoleFitDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Tc.Errors.Hole.FitTypes
  • Outputable TcHoleFitDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Tc.Errors.Hole.FitTypes
datadata HoleFitCandidate
#

HoleFitCandidates are passed to hole fit plugins and then checked whether they fit a given typed-hole.

Instances5Eq, Ord, Outputable, NamedThing, HasOccName