jon.recoil.org

Module OpamSwitchSource

The type for switch names

include OpamStd.ABSTRACT
Sourcetype t
Sourceval compare : OpamSwitch.t -> OpamSwitch.t -> int
Sourceval equal : OpamSwitch.t -> OpamSwitch.t -> bool
Sourceval of_string : string -> OpamSwitch.t
Sourceval to_string : OpamSwitch.t -> string
Sourcemodule Set : OpamStd.SET with type elt = OpamSwitch.t
Sourcemodule Map : OpamStd.MAP with type key = OpamSwitch.t
Sourceval unset : OpamSwitch.t

System switch name

Sourceval is_external : OpamSwitch.t -> bool

Determines 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

Returns the root directory of the switch with the given name, assuming the given opam root

Sourceval external_dirname : string

The relative dirname in which the opam switch prefix sits for external switches ("_opam")

Returns an external switch handle from a directory name. Resolves to the destination if external_dirname at the given dir is a symlink to another external_dirname.