Module OpamFormatConfigSource
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
*)
}include OpamStd.Config.Sig
with type t := OpamFormatConfig.t
and type 'a options_fun := 'a OpamFormatConfig.options_fun
The default values of the options to use at startup
Use to update any option in a t, using the optional arguments of options_fun. E.g. set opts ?option1:1 ?option4:"x" ()
val setk :
(OpamFormatConfig.t -> 'a) ->
OpamFormatConfig.t ->
'a OpamFormatConfig.options_funSame as set, but passes the result to a continuation, allowing argument stacking
The global reference containing the currently set library options. Access using OpamXxxConfig.(!r.field).
Updates the currently set options in r according to the optional arguments
Sets the options, reading the environment to get default values when unspecified
Sets the options like init, but returns the given value (for arguments stacking)