aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-08-25 22:34:15 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-08-25 22:34:15 +0000
commit6e34881bf892602f297797481880ffa1d7db139d (patch)
tree6ba89e642dd33be462f37720b57234ebc9828670 /pretyping
parentf4a6a6aaa928e7a6c8d360c45268cb82c020c2dc (diff)
Actually using the domain function for maps.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16736 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/evarutil.ml2
-rw-r--r--pretyping/evd.ml2
-rw-r--r--pretyping/typeclasses.ml2
3 files changed, 3 insertions, 3 deletions
diff --git a/pretyping/evarutil.ml b/pretyping/evarutil.ml
index 60c4e88bc..f52694edf 100644
--- a/pretyping/evarutil.ml
+++ b/pretyping/evarutil.ml
@@ -429,7 +429,7 @@ let rec check_and_clear_in_constr evdref err ids c =
in the type of ev and adjust the source of the dependency *)
let nconcl =
try
- let nids = Id.Map.fold (fun x _ accu -> Id.Set.add x accu) rids Id.Set.empty in
+ let nids = Id.Map.domain rids in
check_and_clear_in_constr evdref (EvarTypingBreak ev) nids (evar_concl evi)
with ClearDependencyError (rid,err) ->
raise (ClearDependencyError (Id.Map.find rid rids,err)) in
diff --git a/pretyping/evd.ml b/pretyping/evd.ml
index 3b4aa094f..35c0b73e3 100644
--- a/pretyping/evd.ml
+++ b/pretyping/evd.ml
@@ -146,7 +146,7 @@ module EvarInfoMap = struct
let fold_undefined (def,undef) f a =
ExistentialMap.fold f undef a
let exists_undefined (def,undef) f =
- ExistentialMap.fold (fun k v b -> b || f k v) undef false
+ ExistentialMap.exists f undef
let add (def,undef) evk newinfo = match newinfo.evar_body with
| Evar_empty -> (def, ExistentialMap.add evk newinfo undef)
diff --git a/pretyping/typeclasses.ml b/pretyping/typeclasses.ml
index 9046be4d2..e91749431 100644
--- a/pretyping/typeclasses.ml
+++ b/pretyping/typeclasses.ml
@@ -432,7 +432,7 @@ let instances r =
let cl = class_info r in instances_of cl
let is_class gr =
- Refmap.fold (fun k v acc -> acc || eq_gr v.cl_impl gr) !classes false
+ Refmap.exists (fun _ v -> eq_gr v.cl_impl gr) !classes
let is_instance = function
| ConstRef c ->