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.Solver

  • 1 type
  • 22 values
  • Packageghc-9.10.3
  • Exports23
  • 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.)