From e1bf7686f408b52a870d4ed4f3c565dbbcc3954f Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 19 Nov 2026 09:57:49 +0100 Subject: Management of lists in the settings --- lib/model/model.ml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'lib/model/model.ml') 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 -- cgit v1.2.3