summaryrefslogtreecommitdiff
path: root/lib/model/model.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/model/model.ml')
-rw-r--r--lib/model/model.ml24
1 files changed, 14 insertions, 10 deletions
diff --git a/lib/model/model.ml b/lib/model/model.ml
index ec28b56..25179ff 100644
--- a/lib/model/model.ml
+++ b/lib/model/model.ml
@@ -1,20 +1,24 @@
(* Entry point of the [model] library: re-export the submodules, and expose
- the aliases for the model types with the references resolved to
- [Reference.t] at the top level, so that use sites can write [Model.content]
- instead of [Model.content]. *)
+ the resolved types at the top level, so that use sites can write
+ [Model.content] instead of spelling out the type parameters. *)
module Identifier = Identifier
module Dsl = Dsl
module Typ = Typ
module Reference = Reference
+module List = List
module Field = Field
module Section = Section
module Content = Content
-type content = Reference.t Content.t
-type section = Reference.t Section.t
-type field = Reference.t Field.t
-type field_ex = Reference.t Field.field_ex
-type value = Reference.t Typ.value
-type reference = Reference.t Typ.reference
-type 'db typ = ('db, Reference.t) Typ.t
+(** The target of a reference field, resolved: a lazy pointer to a content, or
+ a static list. *)
+type target = Reference.t Typ.target
+
+type content = target Content.t
+type section = target Section.t
+type field = target Field.t
+type field_ex = target Field.field_ex
+type reference = target Typ.reference
+type value = target Typ.value
+type 'db typ = ('db, target) Typ.t