summaryrefslogtreecommitdiff
path: root/lib/manifest.ml
diff options
context:
space:
mode:
author·𐑑𐑴𐑕𐑑𐑩𐑀2025-12-10 21:11:38 +0000
committer·𐑑𐑴𐑕𐑑𐑩𐑀2025-12-10 21:11:38 +0000
commit6596fc3b69e06792753a92ff6538155741b2a55e (patch)
tree8c39c1339d00797d16ac2dfb90f12357654da403 /lib/manifest.ml
parent4d23231ee05ace175f0694114572e298150a467d (diff)
downloadnixtaml-6596fc3b69e06792753a92ff6538155741b2a55e.tar
nixtaml-6596fc3b69e06792753a92ff6538155741b2a55e.tar.gz
nixtaml-6596fc3b69e06792753a92ff6538155741b2a55e.tar.bz2
nixtaml-6596fc3b69e06792753a92ff6538155741b2a55e.tar.lz
nixtaml-6596fc3b69e06792753a92ff6538155741b2a55e.tar.xz
nixtaml-6596fc3b69e06792753a92ff6538155741b2a55e.tar.zst
nixtaml-6596fc3b69e06792753a92ff6538155741b2a55e.zip
can’t reuse Darcs reference since Assumed must be None in manifest
Diffstat (limited to 'lib/manifest.ml')
-rw-r--r--lib/manifest.ml18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/manifest.ml b/lib/manifest.ml
index 8cadce5..8b8c4f7 100644
--- a/lib/manifest.ml
+++ b/lib/manifest.ml
@@ -208,7 +208,23 @@ end
module Darcs = struct
module Reference = struct
- type t = Input.Darcs.Reference.t
+ type context_grounds = [
+ | `Assumed of UTF8.t option
+ | `Stated of UTF8.t
+ ]
+ [@@deriving show, eq]
+
+ let gen_context_grounds =
+ let open QCheck.Gen in
+ oneof [
+ return (`Assumed None);
+ map (fun s -> `Stated s) UTF8.gen;
+ ]
+
+ type t = [
+ | `Context of context_grounds
+ | `Tag of UTF8.t
+ ]
[@@deriving show, eq, qcheck]
let codec : t Util.KDL.codec = {