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(** Scalar formatting styles *)
7
8type t = [
9 | `Any (** Let emitter choose *)
10 | `Plain (** Unquoted: foo *)
11 | `Single_quoted (** 'foo' *)
12 | `Double_quoted (** "foo" *)
13 | `Literal (** | block *)
14 | `Folded (** > block *)
15]
16
17val to_string : t -> string
18(** Convert style to string representation *)
19
20val pp : Format.formatter -> t -> unit
21(** Pretty-print a style *)
22
23val equal : t -> t -> bool
24(** Test equality of two styles *)
25
26val compare : t -> t -> int
27(** Compare two styles *)