diff options
| -rw-r--r-- | pretyping/indrec.ml | 6 | ||||
| -rw-r--r-- | pretyping/termops.ml | 6 | ||||
| -rw-r--r-- | pretyping/termops.mli | 1 |
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 |
