Module OpamSwitch
The type for switch names
include OpamStd.ABSTRACT
val of_string : string -> tval to_string : t -> stringval to_json : t -> OpamJson.t
module Set : OpamStd.SET with type elt = tmodule Map : OpamStd.MAP with type key = tval unset : tSystem switch name
val is_external : t -> boolDetermines wether this switch is internal (bound to a prefix within the opam root) or living somewhere else, in which case its prefix dir is inferred from its name using
get_root
val get_root : OpamFilename.Dir.t -> t -> OpamFilename.Dir.tReturns the root directory of the switch with the given name, assuming the given opam root
val external_dirname : stringThe relative dirname in which the opam switch prefix sits for external switches ("_opam")
val of_dirname : OpamFilename.Dir.t -> tReturns an external switch handle from a directory name. Resolves to the destination if
external_dirnameat the given dir is a symlink to anotherexternal_dirname.