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

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

  • 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.)