diff options
author | Matthieu Sozeau <mattam@mattam.org> | 2013-10-28 14:08:46 +0100 |
---|---|---|
committer | Matthieu Sozeau <mattam@mattam.org> | 2014-05-06 09:58:54 +0200 |
commit | 001ff72b2c17fb7b2fcaefa2555c115f0d909a03 (patch) | |
tree | 9e83ae395173699a7c5b6f00648c4336bedb7afd /kernel/typeops.mli | |
parent | 84cbc09bd1400f732a6c70e8a840e4c13d018478 (diff) |
Initial work on reintroducing old-style polymorphism for compatibility (the stdlib does not compile entirely).
Diffstat (limited to 'kernel/typeops.mli')
-rw-r--r-- | kernel/typeops.mli | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/kernel/typeops.mli b/kernel/typeops.mli index 6bc1ce496..9747dbe83 100644 --- a/kernel/typeops.mli +++ b/kernel/typeops.mli @@ -51,10 +51,13 @@ val judge_of_relative : env -> int -> unsafe_judgment val judge_of_variable : env -> variable -> unsafe_judgment (** {6 type of a constant } *) -val judge_of_constant : env -> constant puniverses -> unsafe_judgment -(* val judge_of_constant_knowing_parameters : *) -(* env -> constant -> unsafe_judgment array -> unsafe_judgment *) +val judge_of_constant : env -> pconstant -> unsafe_judgment + +val judge_of_constant_knowing_parameters : + env -> pconstant -> unsafe_judgment array -> unsafe_judgment + +(** {6 type of an applied projection } *) val judge_of_projection : env -> Names.projection -> unsafe_judgment -> unsafe_judgment @@ -103,15 +106,20 @@ val judge_of_case : env -> case_info val type_fixpoint : env -> Name.t array -> types array -> unsafe_judgment array -> unit -val type_of_constant : env -> constant puniverses -> types constrained +val type_of_constant : env -> pconstant -> types constrained val type_of_constant_type : env -> constant_type -> types val type_of_projection : env -> Names.projection puniverses -> types -val type_of_constant_in : env -> constant puniverses -> types +val type_of_constant_in : env -> pconstant -> types -val type_of_constant_knowing_parameters : +val type_of_constant_type_knowing_parameters : env -> constant_type -> types Lazy.t array -> types +val type_of_constant_knowing_parameters : + env -> pconstant -> types Lazy.t array -> types constrained +(** Make a type polymorphic if an arity *) +val make_polymorphic_if_constant_for_ind : env -> unsafe_judgment -> + constant_type |