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

  • 4 types
  • 2 values
  • Packageghc-9.14.1
  • Exports6
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceFitTypes.hs
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
datadata HoleFitCandidate
#

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

Instances5Eq, Ord, NamedThing, Outputable, HasOccName