aboutsummaryrefslogtreecommitdiff
path: root/toplevel/classes.mli
diff options
context:
space:
mode:
authormsozeau2008-11-09 16:17:14 +0000
committermsozeau2008-11-09 16:17:14 +0000
commit3f5ce5cbf138435fcf7e50bf978192c9fdd7db05 (patch)
tree233c3444ff46fe4b5d1a26047cfd91d4305cb73b /toplevel/classes.mli
parent722ff72af621e09a1772d56613fd930b4ad7245a (diff)
More factorization of inductive/record and typeclasses: move class
declaration code to toplevel/record, including support for singleton classes as definitions. Parsing code also factorized. Arnaud: one more thing to think about when refactoring the definitions in vernacentries. Add support for specifying what to do with anonymous variables in contexts during internalisation (fixes bug #1982), current choice is to generate a name for typeclass bindings. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11563 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/classes.mli')
-rw-r--r--toplevel/classes.mli20
1 files changed, 1 insertions, 19 deletions
diff --git a/toplevel/classes.mli b/toplevel/classes.mli
index 4f20f1649c..c79eccab84 100644
--- a/toplevel/classes.mli
+++ b/toplevel/classes.mli
@@ -29,24 +29,6 @@ val mismatched_params : env -> constr_expr list -> rel_context -> 'a
val mismatched_props : env -> constr_expr list -> rel_context -> 'a
-type binder_list = (identifier located * bool * constr_expr) list
-type binder_def_list = (identifier located * identifier located list * constr_expr) list
-
-val binders_of_lidents : identifier located list -> local_binder list
-
-val name_typeclass_binders : Idset.t ->
- Topconstr.local_binder list ->
- Topconstr.local_binder list * Idset.t
-
-(* val declare_implicit_proj : typeclass -> (identifier * constant) -> *)
-(* Impargs.manual_explicitation list -> bool -> unit *)
-
-val new_class : identifier located ->
- local_binder list ->
- Vernacexpr.sort_expr located option ->
- local_binder list ->
- binder_list -> unit
-
(* Instance declaration *)
val declare_instance : bool -> identifier located -> unit
@@ -66,7 +48,7 @@ val new_instance :
?global:bool -> (* Not global by default. *)
local_binder list ->
typeclass_constraint ->
- binder_def_list ->
+ constr_expr ->
?generalize:bool ->
?tac:Proof_type.tactic ->
?hook:(constant -> unit) ->