summaryrefslogtreecommitdiff
path: root/lib/model/model.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-11-19 08:47:29 +0100
committerSébastien Dailly <sebastien@dailly.me>2026-11-19 08:47:29 +0100
commita9628fda0fc027c54b5ed5313a0c41731d79e41f (patch)
tree9240bc709d0f93336b20fb3d6b3b6cb2e8a35423 /lib/model/model.ml
parent36e895119c80d52e0d3a3695a3cf3d93e41bcd3e (diff)
Create all the datatypes in a single time.
Use aliases for the type name for clarification
Diffstat (limited to 'lib/model/model.ml')
-rw-r--r--lib/model/model.ml20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/model/model.ml b/lib/model/model.ml
new file mode 100644
index 0000000..ec28b56
--- /dev/null
+++ b/lib/model/model.ml
@@ -0,0 +1,20 @@
+(* 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]. *)
+
+module Identifier = Identifier
+module Dsl = Dsl
+module Typ = Typ
+module Reference = Reference
+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