Skip to content

Commit f2ad35d

Browse files
committed
comments
1 parent b95fe8e commit f2ad35d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

vernac/record.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ let data_name id rdata =
542542
module Record_decl = struct
543543
type t = {
544544
mie : Entries.mutual_inductive_entry;
545+
records : Data.t list;
545546
primitive_proj : bool;
546547
impls : DeclareInd.one_inductive_impls list;
547548
globnames : UState.named_universes_entry;
@@ -550,7 +551,6 @@ module Record_decl = struct
550551
ubinders : UnivNames.universe_binders;
551552
projections_kind : Decls.definition_object_kind;
552553
poly : bool;
553-
records : Data.t list;
554554
}
555555
end
556556

vernac/record.mli

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ val definition_structure
5252
}
5353
end
5454

55+
(** A record is an inductive [mie] with extra metadata in [records] *)
5556
module Record_decl : sig
5657
type t = {
5758
mie : Entries.mutual_inductive_entry;
59+
records : Data.t list;
60+
(* TODO: this part could be factored in mie *)
5861
primitive_proj : bool;
5962
impls : DeclareInd.one_inductive_impls list;
6063
globnames : UState.named_universes_entry;
@@ -63,7 +66,6 @@ val definition_structure
6366
ubinders : UnivNames.universe_binders;
6467
projections_kind : Decls.definition_object_kind;
6568
poly : bool;
66-
records : Data.t list;
6769
}
6870
end
6971

0 commit comments

Comments
 (0)