aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
authorherbelin2002-01-17 22:29:42 +0000
committerherbelin2002-01-17 22:29:42 +0000
commitd7c2f6630d0e153a277c17332dea795c197977d6 (patch)
tree801afcad877050c96aa1fe767312c8132978b8e0 /pretyping
parent19649e7f1029a83b6f8827b1d88f580af607a9bf (diff)
Amélioration affichage échec lookup_eliminator
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2403 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/indrec.ml6
-rw-r--r--pretyping/termops.ml6
-rw-r--r--pretyping/termops.mli1
3 files changed, 9 insertions, 4 deletions
diff --git a/pretyping/indrec.ml b/pretyping/indrec.ml
index 392b4fc847..7aedf999a7 100644
--- a/pretyping/indrec.ml
+++ b/pretyping/indrec.ml
@@ -575,9 +575,9 @@ let lookup_eliminator ind_sp s =
try construct_reference env id
with Not_found ->
errorlabstrm "default_elim"
- (str "Cannot find the elimination combinator :" ++
+ (str "Cannot find the elimination combinator " ++
pr_id id ++ spc () ++
- str "The elimination of the inductive definition :" ++
+ str "The elimination of the inductive definition " ++
pr_id base ++ spc () ++ str "on sort " ++
- spc () ++ print_sort (new_sort_in_family s) ++
+ spc () ++ print_sort_family s ++
str " is probably not allowed")
diff --git a/pretyping/termops.ml b/pretyping/termops.ml
index 97e8f68cc5..e861ebbe43 100644
--- a/pretyping/termops.ml
+++ b/pretyping/termops.ml
@@ -20,9 +20,13 @@ open Sign
let print_sort = function
| Prop Pos -> (str "Set")
| Prop Null -> (str "Prop")
-(* | Type _ -> (str "Type") *)
| Type u -> (str "Type(" ++ Univ.pr_uni u ++ str ")")
+let print_sort_family = function
+ | InSet -> (str "Set")
+ | InProp -> (str "Prop")
+ | InType -> (str "Type")
+
let current_module = ref empty_dirpath
let set_module m = current_module := m
diff --git a/pretyping/termops.mli b/pretyping/termops.mli
index 5e32cef35a..2a3e8b29ce 100644
--- a/pretyping/termops.mli
+++ b/pretyping/termops.mli
@@ -22,6 +22,7 @@ val new_sort_in_family : sorts_family -> sorts
(* iterators on terms *)
val print_sort : sorts -> std_ppcmds
+val print_sort_family : sorts_family -> std_ppcmds
val prod_it : init:types -> (name * types) list -> types
val lam_it : init:constr -> (name * types) list -> constr
val rel_vect : int -> int -> constr array