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.Errors.Hole.FitTypes

  • 3 types
  • 2 values
  • Packageghc-9.10.3
  • Exports5
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceFitTypes.hs
datadata HoleFit
#

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 HoleFitDefined in ghc-9.10.3 · GHC.Tc.Errors.Hole.FitTypes
  • Ord HoleFitDefined in ghc-9.10.3 · GHC.Tc.Errors.Hole.FitTypes
  • Outputable HoleFitDefined in ghc-9.10.3 · 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, NamedThing, Outputable, HasOccName