package opam-solver

  1. Overview
  2. Docs

Configuration options for the solver lib (record, global reference, setter, initialisation)

type t = private {
  1. cudf_file : string option;
  2. solver_timeout : float;
  3. external_solver : OpamTypes.arg list option Lazy.t;
  4. best_effort : bool;
  5. solver_preferences_default : string option Lazy.t;
  6. solver_preferences_upgrade : string option Lazy.t;
  7. solver_preferences_fixup : string option Lazy.t;
}
type 'a options_fun = ?cudf_file:string option -> ?solver_timeout:float -> ?external_solver:OpamTypes.arg list option Lazy.t -> ?best_effort:bool -> ?solver_preferences_default:string option Lazy.t -> ?solver_preferences_upgrade:string option Lazy.t -> ?solver_preferences_fixup:string option Lazy.t -> 'a
include OpamStd.Config.Sig with type t := t and type 'a options_fun := 'a options_fun
val default : t

The default values of the options to use at startup

val set : t -> (unit -> t) options_fun

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 : (t -> 'a) -> t -> 'a options_fun

Same 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).

val update : ?noop:_ -> (unit -> unit) options_fun

Updates the currently set options in r according to the optional arguments

val init : ?noop:_ -> (unit -> unit) options_fun

Sets the options, reading the environment to get default values when unspecified

val initk : 'a -> 'a options_fun

Sets the options like init, but returns the given value (for arguments stacking)

val external_solver_command : input:string -> output:string -> criteria:string -> string list option
val criteria : OpamTypes.solver_criteria -> string
OCaml

Innovation. Community. Security.