package opam-format

  1. Overview
  2. Docs

OPAM variables with scope (global or module), used in "opam" package definition files in "filters"

Variable names

include OpamStd.ABSTRACT
type t
val compare : t -> t -> int
val equal : t -> t -> bool
val of_string : string -> t
val to_string : t -> string
val to_json : t OpamJson.encoder
val of_json : t OpamJson.decoder
module Set : OpamStd.SET with type elt = t
module Map : OpamStd.MAP with type key = t
type variable = t

Shortcut to variables

type variable_contents =
  1. | B of bool
  2. | S of string
  3. | L of string list

Variable contents

val string_of_variable_contents : variable_contents -> string

Pretty print of variable contents

Variable contents constructors

val string : string -> variable_contents
val int : int -> variable_contents
val bool : bool -> variable_contents
module Full : sig ... end

Fully qualified variable.