package hl_yaml

  1. Overview
  2. Docs

Parameters

module Eio : sig ... end

Signature

include Intf with type 'a io := 'a with type filepath := [ `Dir ] Eio.Path.t
type options = {
  1. get_env_var : string -> string option;
  2. get_file : [ `Dir ] Eio.Path.t -> string;
  3. config_path_filter_map : string -> string;
  4. file_path_filter_map : string -> string;
  5. allow_unused_anchors : bool;
  6. allow_redefining_anchors : bool;
  7. enable_includes : bool;
  8. enable_conditional_includes : bool;
  9. enable_imports : bool;
  10. process_scalar_tag : tag:string -> string -> [ `Scalar of string | `YAML of Yaml.yaml ] option;
}
val default_options : options
val make_options : ?get_env_var:(string -> string option) -> ?get_file:([ `Dir ] Eio.Path.t -> string) -> ?config_path_filter_map:(string -> string) -> ?file_path_filter_map:(string -> string) -> ?enable_includes:bool -> ?enable_conditional_includes:bool -> ?enable_imports:bool -> ?allow_unused_anchors:bool -> ?allow_redefining_anchors:bool -> ?process_scalar_tag: (tag:string -> string -> [ `Scalar of string | `YAML of Yaml.yaml ] option) -> unit -> options
val ok_or_raise : ('a, Spec.error list) result -> 'a
module JSON : sig ... end
module Spec : sig ... end
exception HL_YAML_error of string
module YAML : sig ... end
val parse : cwd:[ `Dir ] Eio.Path.t -> ?options:options -> ?validate:Spec.t -> of_yojson:(Yojson.Safe.t -> ('a, string) result) -> string -> ('a, Spec.error list) result
OCaml

Innovation. Community. Security.