HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Moduleghc-9.14.1GHC2021

GHC.Tc.Errors.Hole.FitTypes

Synopsis
  • 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

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

Instances5Eq, Ord, NamedThing, Outputable, HasOccName