diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 08:47:29 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 08:47:29 +0100 |
| commit | a9628fda0fc027c54b5ed5313a0c41731d79e41f (patch) | |
| tree | 9240bc709d0f93336b20fb3d6b3b6cb2e8a35423 /lib/model/model.ml | |
| parent | 36e895119c80d52e0d3a3695a3cf3d93e41bcd3e (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.ml | 20 |
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 |
