(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* let err = UnsatisfiableConstraints (evd, None, comp) in raise (TypeClassError (env, err)) | Some ev -> let loc, kind = Evd.evar_source ev evd in let err = UnsatisfiableConstraints (evd, Some (ev, kind), comp) in Loc.raise loc (TypeClassError (env, err)) let mismatched_ctx_inst env c n m = typeclass_error env (MismatchedContextInstance (c, n, m)) let unsatisfiable_exception exn = match exn with | TypeClassError (_, UnsatisfiableConstraints _) -> true | _ -> false