From a9628fda0fc027c54b5ed5313a0c41731d79e41f Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 19 Nov 2026 08:47:29 +0100 Subject: Create all the datatypes in a single time. Use aliases for the type name for clarification --- lib/model/model.ml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/model/model.ml (limited to 'lib/model/model.ml') 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 -- cgit v1.2.3