package ocp-ocamlres

  1. Overview
  2. Docs

Output subformat dispatching the output depending on file extensions and the command line options. To be polymorphic, the t type is a string containing the raw resource representation, and the from_raw method of the selected subformat is used at every operation.

val find_subformat : ('a * ('b * SM.key option) option) -> (module SubFormat)
type t = string
val from_raw : 'a -> 'b -> 'b
val to_raw : 'a -> 'b -> 'b
val pprint : OCamlRes.Path.t -> string -> PPrint.document
val pprint_header : OCamlRes.Path.t -> string -> PPrint.document option
val name : OCamlRes.Path.t -> string -> string
val type_name : OCamlRes.Path.t -> string -> string
val mod_name : OCamlRes.Path.t -> string -> string
OCaml

Innovation. Community. Security.