diff options
| author | ppedrot | 2013-06-10 16:25:06 +0000 |
|---|---|---|
| committer | ppedrot | 2013-06-10 16:25:06 +0000 |
| commit | af1947ae57d0fa6f35a61b86ea9e73e66f2f5fd8 (patch) | |
| tree | b7eb8d20d6bf4f8d87986c7f4220d8cbe704f760 /tactics/extraargs.ml4 | |
| parent | f97121161c9e6c11eea4ad8c4303d0bd083c6672 (diff) | |
Hiding tactic value representations.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16570 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/extraargs.ml4')
| -rw-r--r-- | tactics/extraargs.ml4 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tactics/extraargs.ml4 b/tactics/extraargs.ml4 index 21e120a7e7..2c0ca8fd1d 100644 --- a/tactics/extraargs.ml4 +++ b/tactics/extraargs.ml4 @@ -50,13 +50,13 @@ let occurrences_of = function Errors.error "Illegal negative occurrence number."; OnlyOccurrences nl -let coerce_to_int = function - | VInteger n -> n - | v -> raise (CannotCoerceTo "an integer") +let coerce_to_int v = match Value.to_int v with + | None -> raise (CannotCoerceTo "an integer") + | Some n -> n -let int_list_of_VList = function - | VList l -> List.map (fun n -> coerce_to_int n) l - | _ -> raise Not_found +let int_list_of_VList v = match Value.to_list v with +| Some l -> List.map (fun n -> coerce_to_int n) l +| _ -> raise (CannotCoerceTo "an integer") let interp_occs ist gl l = match l with |
