Module OpamFormatConfig
Configuration options for the format lib (record, global reference and setter)
type t= private{strict : bool;Fail early with errors in OPAM files
skip_version_checks : bool;Ignore mismatching OPAM versions in files
all_parens : bool;Affects the OPAM format printer; for backwards-compatibility
}type 'a options_fun= ?strict:bool -> ?skip_version_checks:bool -> ?all_parens:bool -> 'a
include OpamStd.Config.Sig with type t := t and type 'a options_fun := 'a options_fun
type 'a options_funType of functions with optional arguments for setting each of
t's fields, similarly named, and returning'a
val default : tThe default values of the options to use at startup
val set : t -> (unit -> t) options_funUse to update any option in a
t, using the optional arguments ofoptions_fun. E.g.set opts ?option1:1 ?option4:"x" ()
val setk : (t -> 'a) -> t -> 'a options_funSame as
set, but passes the result to a continuation, allowing argument stacking
val r : t Stdlib.refThe global reference containing the currently set library options. Access using
OpamXxxConfig.(!r.field).
val update : ?noop:_ -> (unit -> unit) options_funUpdates the currently set options in
raccording to the optional arguments
val init : ?noop:_ -> (unit -> unit) options_funSets the options, reading the environment to get default values when unspecified
val initk : 'a -> 'a options_funSets the options like
init, but returns the given value (for arguments stacking)