Pure OCaml Yaml 1.2 reader and writer using Bytesrw
1(*---------------------------------------------------------------------------
2 Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved.
3 SPDX-License-Identifier: ISC
4 ---------------------------------------------------------------------------*)
5
6(** Collection layout styles *)
7
8type t = [
9 | `Any (** Let emitter choose *)
10 | `Block (** Indentation-based *)
11 | `Flow (** Inline with brackets *)
12]
13
14val to_string : t -> string
15(** Convert style to string representation *)
16
17val pp : Format.formatter -> t -> unit
18(** Pretty-print a style *)
19
20val equal : t -> t -> bool
21(** Test equality of two styles *)
22
23val compare : t -> t -> int
24(** Compare two styles *)