Module OpamVariable.Full
include OpamStd.ABSTRACT
val of_string : string -> t
val to_string : t -> string
val to_json : t -> OpamJson.t
module Set : OpamStd.SET with type elt = t
module Map : OpamStd.MAP with type key = t
type scope
=
|
Global
Note: this is attributed to unqualified variables, and may also design self-referring ones
|
Self
Variable in a package-specific file referring to that package
_:varname
|
Package of OpamPackage.Name.t
pkgname:varname
val is_global : t -> bool
val package : ?self:OpamPackage.Name.t -> t -> OpamPackage.Name.t option
Return the package corresponding to the scope of the variable
val create : OpamPackage.Name.t -> variable -> t
Create a variable local for a given library/syntax extension
val read_from_env : t -> variable_contents option
Looks up for an environment override through the environment, by means of
OPAMVAR_glovar
orOPAMVAR_pkg_pkgvar