package hl_yaml

  1. Overview
  2. Docs
type +'a io
type filepath
type options = {
  1. get_env_var : string -> string option;
  2. get_file : filepath -> string io;
  3. config_path_filter_map : string -> string io;
  4. file_path_filter_map : string -> string io;
  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 ] io option;
}
val default_options : options
val make_options : ?get_env_var:(string -> string option) -> ?get_file:(filepath -> string io) -> ?config_path_filter_map:(string -> string io) -> ?file_path_filter_map:(string -> string io) -> ?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 ] io option) -> unit -> options
val ok_or_raise : ('a, Spec.error list) Stdlib.result -> 'a
module JSON : sig ... end
module YAML : sig ... end
module Spec : sig ... end
exception HL_YAML_error of string
val parse : ?options:options -> ?validate:Spec.t -> of_yojson:(Yojson.Safe.t -> ('a, string) Stdlib.result) -> string -> ('a, Spec.error list) Stdlib.result io
OCaml

Innovation. Community. Security.