aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/cases.mli10
1 files changed, 10 insertions, 0 deletions
diff --git a/pretyping/cases.mli b/pretyping/cases.mli
index 17d74a9fdd..adb66ef475 100644
--- a/pretyping/cases.mli
+++ b/pretyping/cases.mli
@@ -32,10 +32,20 @@ type pattern_matching_error =
exception PatternMatchingError of env * pattern_matching_error
+val raise_pattern_matching_error : (loc * env * pattern_matching_error) -> 'a
+
val error_wrong_numarg_constructor_loc : loc -> env -> constructor -> int -> 'a
val error_wrong_numarg_inductive_loc : loc -> env -> inductive -> int -> 'a
+val error_bad_constructor_loc : loc -> constructor -> inductive -> 'a
+
+val error_bad_pattern_loc : loc -> constructor -> constr -> 'a
+
+val error_wrong_predicate_arity_loc : loc -> env -> constr -> constr -> constr -> 'a
+
+val error_needs_inversion : env -> constr -> types -> 'a
+
(*s Compilation of pattern-matching. *)
module type S = sig