diff options
| author | Β·ππ΄πππ©π€ | 2025-12-10 21:11:38 +0000 |
|---|---|---|
| committer | Β·ππ΄πππ©π€ | 2025-12-10 21:11:38 +0000 |
| commit | 6596fc3b69e06792753a92ff6538155741b2a55e (patch) | |
| tree | 8c39c1339d00797d16ac2dfb90f12357654da403 | |
| parent | 4d23231ee05ace175f0694114572e298150a467d (diff) | |
| download | nixtaml-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
| -rw-r--r-- | lib/manifest.ml | 18 |
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 = { |
