diff options
| author | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-11 05:16:33 +0000 |
|---|---|---|
| committer | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-11 05:16:33 +0000 |
| commit | 36f4b89ea2ea987beab961c1c900ee796cb9ec51 (patch) | |
| tree | 4241e8629c1b7e603d5c1e4e9d68d041e3ac7052 /lib/input.ml | |
| parent | 47b747fd39e13edc6c6bae741fadaddec14a3e79 (diff) | |
| download | nixtaml-36f4b89ea2ea987beab961c1c900ee796cb9ec51.tar nixtaml-36f4b89ea2ea987beab961c1c900ee796cb9ec51.tar.gz nixtaml-36f4b89ea2ea987beab961c1c900ee796cb9ec51.tar.bz2 nixtaml-36f4b89ea2ea987beab961c1c900ee796cb9ec51.tar.lz nixtaml-36f4b89ea2ea987beab961c1c900ee796cb9ec51.tar.xz nixtaml-36f4b89ea2ea987beab961c1c900ee796cb9ec51.tar.zst nixtaml-36f4b89ea2ea987beab961c1c900ee796cb9ec51.zip | |
UTF8 type
Diffstat (limited to 'lib/input.ml')
| -rw-r--r-- | lib/input.ml | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/input.ml b/lib/input.ml index 1aed440..b233292 100644 --- a/lib/input.ml +++ b/lib/input.ml @@ -8,7 +8,7 @@ type jg_models2 = string -> Jingoo.Jg_types.tvalue module Template = struct type t = - Template of string + Template of UTF8.t [@@unboxed] [@@deriving show, eq, qcheck] @@ -40,7 +40,7 @@ module Latest = struct type t = { cmd: Cmd.t option; - value: string option; + value: UTF8.t option; } [@@deriving show, eq, make, qcheck] end @@ -66,8 +66,8 @@ end module Git = struct module Reference = struct type t = [ - | `Branch of string - | `Ref of string + | `Branch of UTF8.t + | `Ref of UTF8.t ] [@@deriving show, eq, qcheck] end @@ -76,10 +76,10 @@ module Git = struct repository: Template.t; mirrors: Template.t list; reference: Reference.t; - datetime: string option; (* ISO 8601 RFC 3339 *) + datetime: UTF8.t option; (* ISO 8601 RFC 3339 *) submodules: bool; [@default false] lfs: bool; [@default false] - latest_revision: string option; + latest_revision: UTF8.t option; } [@@deriving show, eq, make, qcheck] @@ -99,14 +99,14 @@ end module Darcs = struct module Reference = struct type context_grounds = [ - | `Assumed of string option - | `Stated of string + | `Assumed of UTF8.t option + | `Stated of UTF8.t ] [@@deriving show, eq, qcheck] type t = [ | `Context of context_grounds - | `Tag of string + | `Tag of UTF8.t ] [@@deriving show, eq, qcheck] end @@ -115,8 +115,8 @@ module Darcs = struct repository: Template.t; mirrors: Template.t list; reference: Reference.t; - datetime: string option; (* ISO 8601 RFC 3339 *) - latest_weak_hash: string option; + datetime: UTF8.t option; (* ISO 8601 RFC 3339 *) + latest_weak_hash: UTF8.t option; } [@@deriving show, eq, make, qcheck] @@ -126,9 +126,9 @@ end module Pijul = struct module Reference = struct type t = [ - | `Channel of string - | `State of string - | `Change of string + | `Channel of UTF8.t + | `State of UTF8.t + | `Change of UTF8.t ] [@@deriving show, eq, qcheck] end @@ -137,8 +137,8 @@ module Pijul = struct remote: Template.t; mirrors: Template.t list; reference: Reference.t; - datetime: string option; (* ISO 8601 RFC 3339 *) - latest_state: string option; + datetime: UTF8.t option; (* ISO 8601 RFC 3339 *) + latest_state: UTF8.t option; } [@@deriving show, eq, make, qcheck] end @@ -171,9 +171,9 @@ module Hash = struct algorithm: algorithm; [@default default_algorithm] (* None is for not yet calculated *) - value: string option; + value: UTF8.t option; (* used to assert in fetching for manually-updated pins *) - expected: string option; + expected: UTF8.t option; } [@@deriving show, eq, make, qcheck] end |
