HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.Tc.Solver

  • 1 type
  • 21 values
  • Packageghc-9.14.1
  • Exports22
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceSolver.hs
datadata InferMode
#

How should we choose which constraints to quantify over?

Constructors

  • ApplyMR

    Apply the monomorphism restriction, never quantifying over any constraints

  • EagerDefaulting

    See Note [TcRnExprMode] in GHC.Tc.Module, the :type +d case; this mode refuses to quantify over any defaultable constraint

  • NoRestrictions

    Quantify over any constraint that satisfies pickQuantifiablePreds

Instances1Outputable
valuesolveEqualities :: String -> TcM a -> TcM a
#

Type-check a thing that emits only equality constraints, solving any constraints we can and re-emitting constraints that we can't. Use this variant only when we'll get another crack at it later See Note [Failure in local type signatures]

Panics if we solve any non-equality constraints. (In runTCSEqualities we use an error thunk for the evidence bindings.)