aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/type_errors.mli
diff options
context:
space:
mode:
authorGravatar barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-05-23 15:13:07 +0000
committerGravatar barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-05-23 15:13:07 +0000
commitdc2e676c9cdedea43805c21a4b3203832a985f95 (patch)
tree849760ef13d1460d603ce9436c244922e13a6080 /kernel/type_errors.mli
parenta023ff2e48aaf7ebfb15e10dc7cdb80ab2991e8e (diff)
amelioration des messages d'erreurs vis a vis des evars
ajout automatique des chemins vers les sources au moment du Drop git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1761 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/type_errors.mli')
-rw-r--r--kernel/type_errors.mli36
1 files changed, 18 insertions, 18 deletions
diff --git a/kernel/type_errors.mli b/kernel/type_errors.mli
index 277e5ca4e..11729171b 100644
--- a/kernel/type_errors.mli
+++ b/kernel/type_errors.mli
@@ -43,10 +43,10 @@ type type_error =
| NotAType of unsafe_judgment
| BadAssumption of constr
| ReferenceVariables of identifier
- | ElimArity of inductive * constr list * constr * constr * constr
+ | ElimArity of inductive * constr list * constr * unsafe_judgment
* (constr * constr * string) option
- | CaseNotInductive of constr * constr
- | NumberBranches of constr * constr * int
+ | CaseNotInductive of unsafe_judgment
+ | NumberBranches of unsafe_judgment * int
| IllFormedBranch of constr * int * constr * constr
| Generalization of (name * types) * unsafe_judgment
| ActualType of constr * constr * constr
@@ -59,44 +59,44 @@ type type_error =
exception TypeError of path_kind * env * type_error
-val error_unbound_rel : path_kind -> env -> 'a Evd.evar_map -> int -> 'b
+val error_unbound_rel : path_kind -> env -> int -> 'a
-val error_not_type : path_kind -> env -> unsafe_judgment -> 'b
+val error_not_type : path_kind -> env -> unsafe_judgment -> 'a
-val error_assumption : path_kind -> env -> constr -> 'b
+val error_assumption : path_kind -> env -> constr -> 'a
-val error_reference_variables : path_kind -> env -> identifier -> 'b
+val error_reference_variables : path_kind -> env -> identifier -> 'a
val error_elim_arity :
path_kind -> env -> inductive -> constr list -> constr
- -> constr -> constr -> (constr * constr * string) option -> 'b
+ -> unsafe_judgment -> (constr * constr * string) option -> 'a
val error_case_not_inductive :
- path_kind -> env -> constr -> constr -> 'b
+ path_kind -> env -> unsafe_judgment -> 'a
val error_number_branches :
- path_kind -> env -> constr -> constr -> int -> 'b
+ path_kind -> env -> unsafe_judgment -> int -> 'a
val error_ill_formed_branch :
- path_kind -> env -> constr -> int -> constr -> constr -> 'b
+ path_kind -> env -> constr -> int -> constr -> constr -> 'a
val error_generalization :
- path_kind -> env -> 'a Evd.evar_map -> name * types -> unsafe_judgment -> 'b
+ path_kind -> env -> name * types -> unsafe_judgment -> 'a
val error_actual_type :
- path_kind -> env -> constr -> constr -> constr -> 'b
+ path_kind -> env -> constr -> constr -> constr -> 'a
val error_cant_apply_not_functional :
- path_kind -> env -> unsafe_judgment -> unsafe_judgment list -> 'b
+ path_kind -> env -> unsafe_judgment -> unsafe_judgment list -> 'a
val error_cant_apply_bad_type :
- path_kind -> env -> 'a Evd.evar_map -> int * constr * constr ->
- unsafe_judgment -> unsafe_judgment list -> 'b
+ path_kind -> env -> int * constr * constr ->
+ unsafe_judgment -> unsafe_judgment list -> 'a
val error_ill_formed_rec_body :
- path_kind -> env -> guard_error -> name array -> int -> constr array -> 'b
+ path_kind -> env -> guard_error -> name array -> int -> constr array -> 'a
val error_ill_typed_rec_body :
path_kind -> env -> int -> name array -> unsafe_judgment array
- -> types array -> 'b
+ -> types array -> 'a