ghc-8.0.2: The GHC API

Safe HaskellNone




solveTopConstraints :: TcM a -> TcM (a, Bag EvBind) #

Type-check a thing, returning the result and any EvBinds produced during solving. Emits errors -- but does not fail -- if there is trouble.

solveEqualities :: TcM a -> TcM a #

Type-check a thing that emits only equality constraints, then solve those constraints. Fails outright if there is trouble.

runTcSDeriveds :: TcS a -> TcM a #

This variant of runTcS will keep solving, even when only Deriveds are left around. It also doesn't return any evidence, as callers won't need it.