aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/typeclasses.ml
diff options
context:
space:
mode:
authorGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-04-17 11:54:25 +0000
committerGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-04-17 11:54:25 +0000
commitec837079f89825855777a6d7c325f7163e92977c (patch)
tree5dd42435011ec216315a1edc57acdff78ee9da17 /pretyping/typeclasses.ml
parent286d7e8201de98dc5cc36b6fbda8f9c1126f37ea (diff)
Little fixes in setoid_rewrite.
- More meaningful argument name for resolve_typeclasses. - Try to remove unneeded instance declarations in Morphisms. - Allow the proofs of reflexivity arising from unchanged arguments in setoid_rewrite to be fullfiled by Morphism instances and not necessariy because the relation is reflexive (needed by higher-order morphisms). Use a new "MorphismProxy" class to implement that efficiently. - Fix a bug in abstract_generalize not delta-reducing a type where it should. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10807 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/typeclasses.ml')
-rw-r--r--pretyping/typeclasses.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/typeclasses.ml b/pretyping/typeclasses.ml
index 045070960..e9a766a92 100644
--- a/pretyping/typeclasses.ml
+++ b/pretyping/typeclasses.ml
@@ -407,10 +407,10 @@ let has_typeclasses evd =
&& is_resolvable evi))
evd false
-let resolve_typeclasses ?(onlyargs=false) ?(all=true) env sigma evd =
+let resolve_typeclasses ?(onlyargs=false) ?(fail=true) env sigma evd =
if not (has_typeclasses sigma) then evd
else
- !solve_instanciations_problem env (Evarutil.nf_evar_defs evd) onlyargs all
+ !solve_instanciations_problem env (Evarutil.nf_evar_defs evd) onlyargs fail
type substitution = (identifier * constr) list