diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-10-24 21:29:41 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-10-24 21:29:41 +0000 |
commit | 6da011a8677676462b24940a6171fb22615c3fbb (patch) | |
tree | 0df385cc8b8d72b3465d7745d2b97283245c7ed5 /tactics/taccoerce.ml | |
parent | 133a2143413a723d1d4e3dead5ffa8458f61afa8 (diff) |
More monomorphic List.mem + List.assoc + ...
To reduce the amount of syntactic noise, we now provide
a few inner modules Int.List, Id.List, String.List, Sorts.List
which contain some monomorphic (or semi-monomorphic) functions
such as mem, assoc, ...
NB: for Int.List.mem and co we reuse List.memq and so on.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16936 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/taccoerce.ml')
-rw-r--r-- | tactics/taccoerce.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tactics/taccoerce.ml b/tactics/taccoerce.ml index 06a9ab811..aa254c2f8 100644 --- a/tactics/taccoerce.ml +++ b/tactics/taccoerce.ml @@ -64,7 +64,7 @@ let to_list v = end let is_variable env id = - List.mem id (Termops.ids_of_named_context (Environ.named_context env)) + Id.List.mem id (Termops.ids_of_named_context (Environ.named_context env)) (* Transforms an id into a constr if possible, or fails with Not_found *) let constr_of_id env id = @@ -155,7 +155,7 @@ let coerce_to_evaluable_ref env v = | _ -> fail () else if has_type v (topwit wit_var) then let id = out_gen (topwit wit_var) v in - if List.mem id (Termops.ids_of_context env) then EvalVarRef id + if Id.List.mem id (Termops.ids_of_context env) then EvalVarRef id else fail () else let ev = match Value.to_constr v with |