module OpamTypes: sig
.. end
Common types used by other modules
type 'a
success = [ `Successful of 'a ]
Error and continuation handling
type 'a
error = [ `Error of 'a | `Exception of exn ]
type ('a, 'b)
status = [ `Error of 'b | `Exception of exn | `Successful of 'a ]
Filenames
type
basename = OpamFilename.Base.t
Basenames
type
dirname = OpamFilename.Dir.t
Directory names
type
filename = OpamFilename.t
Filenames
type
filename_set = OpamFilename.Set.t
Set of files
type 'a
filename_map = 'a OpamFilename.Map.t
Map of files
type
generic_file = OpamFilename.generic_file
=
Generalized file type
type 'a
download =
| |
Up_to_date of 'a |
| |
Not_available of string |
| |
Result of 'a |
Download result
Packages
type
package = OpamPackage.t
Packages are (name
* version
) tuple
type
package_set = OpamPackage.Set.t
Set of packages
type 'a
package_map = 'a OpamPackage.Map.t
Map of packages
type
name = OpamPackage.Name.t
Package names
type
name_set = OpamPackage.Name.Set.t
Set of package names
type 'a
name_map = 'a OpamPackage.Name.Map.t
Map of package names
type
version = OpamPackage.Version.t
Package versions
type
version_set = OpamPackage.Version.Set.t
Set of package versions
Compilers
type
compiler = OpamCompiler.t
Compiler names
type
compiler_set = OpamCompiler.Set.t
Set of compiler names
type 'a
compiler_map = 'a OpamCompiler.Map.t
Maps of compiler names
type
compiler_version = OpamCompiler.Version.t
Compiler versions
type
opam_version = OpamVersion.t
OPAM versions
type
compiler_constraint = OpamCompiler.Version.constr
Compiler constraints
Variables
type
variable = OpamVariable.t
Variables
type
full_variable = OpamVariable.Full.t
Fully qualified variables (ie. with the name of
sections/sub-sections they appear in)
type
variable_contents = OpamVariable.variable_contents
=
| |
B of bool |
| |
S of string |
Content of user-defined variables
type
variable_map = OpamVariable.variable_contents OpamVariable.Map.t
A map from variables to their contents (i.e an environment)
type
package_flag =
| |
LightUninstall |
| |
AllSwitches |
Opam package flags
type
package_dep_flag =
| |
Depflag_Build |
| |
Depflag_Test |
| |
Depflag_Doc |
Flags on dependencies
module type GenericPackage = sig
.. end
At some point we want to abstract so that the same functions can be used
over CUDF and OPAM packages
type 'a
generic_formula = 'a OpamFormula.formula
=
A generic formula
type
atom = OpamFormula.atom
Formula atoms
type
formula = OpamFormula.t
Formula over versionned packages
type
ext_formula = package_dep_flag list OpamFormula.ext_package_formula
Formula over versionned packages
type 'a
conjunction = 'a OpamFormula.conjunction
AND formulat
type 'a
disjunction = 'a OpamFormula.disjunction
OR formulat
Repositories
type
repository_name = OpamRepositoryName.t
Repository names
type 'a
repository_name_map = 'a OpamRepositoryName.Map.t
Maps of repository names
type
repository_kind = [ `darcs | `git | `hg | `http | `local ]
Repository kind
type
address = string * string option
Repository address
type
repository_root = dirname
Repository root
type
repository = {
}
Repositories
Solver
type 'a
action =
| |
To_change of 'a option * 'a |
| |
To_delete of 'a |
| |
To_recompile of 'a |
The solver answers a list of actions to perform
type 'a
cause =
| |
Use of 'a list |
| |
Required_by of 'a list |
| |
Conflicts_with of 'a list |
| |
Upstream_changes |
| |
Requested |
| |
Unknown |
The possible causes of an action.
type ('a, 'b)
gen_solution = {
|
to_remove : 'a list ; |
|
to_process : 'b ; |
|
root_causes : ('a * 'a cause) list ; |
}
The type for solutions
type
solver_result =
Solver result
type ('a, 'b)
result =
| |
Success of 'a |
| |
Conflicts of 'b |
Solver result
type
solver_criteria = [ `Default | `Fixup | `Upgrade ]
type 'a
request = {
}
Solver request
type
user_action =
user request action
type
universe = {
}
Solver universe
Command line arguments
type
upload = {
}
Upload arguments
type
pin_option =
Pinned packages options
type
pin_kind = [ `darcs | `git | `hg | `local | `version ]
Pin kind
type
shell = [ `bash | `csh | `fish | `sh | `zsh ]
Shell compatibility modes
type
global_config = {
|
complete : bool ; |
|
switch_eval : bool ; |
}
Global configuration option
type
user_config = {
}
User configuration option
Filtered commands
type
relop = OpamFormula.relop
type
logop = [ `And | `Or ]
type
pfxop = [ `Not ]
type
filter =
Filter
type
simple_arg =
| |
CString of string |
| |
CIdent of string |
A command argument
type
arg = simple_arg * filter option
Command argument
type
command = arg list * filter option
Command
type
pos = filename * int * int
Source file positions: filename, line, column
type
value =
Base values
type
file_section = {
|
section_kind : string ; |
|
section_name : string ; |
|
section_items : file_item list ; |
}
A file section
type
file_item =
A file is composed of sections and variable definitions
type
file = {
}
A file is a list of items and the filename
Switches
type
switch = OpamSwitch.t
Compiler switches
type
switch_set = OpamSwitch.Set.t
Set of compiler switches
type 'a
switch_map = 'a OpamSwitch.Map.t
Map of compile switches
Misc
type
lock =
| |
Read_lock of (unit -> unit) |
| |
Global_lock of (unit -> unit) |
| |
Switch_lock of (unit -> unit) |
| |
Global_with_switch_cont_lock of (unit -> switch * (unit -> unit)) |
The different kinds of locks
type
file_attribute = OpamFilename.Attribute.t
A line in urls.tx
type
file_attribute_set = OpamFilename.Attribute.Set.t
All the lines in urls.txt
type 'a
optional = {
}
Optional contents
type
stats = {
|
s_install : int ; |
|
s_reinstall : int ; |
|
s_upgrade : int ; |
|
s_downgrade : int ; |
|
s_remove : int ; |
}
Upgrade statistics
type
env = (string * string) list
Environement variables
type
env_updates = (string * string * string) list
Environment updates
type
tags = OpamMisc.StringSet.t OpamMisc.StringSetMap.t
Tags
Repository and global states
type
checksums = string list
Checksums
type
json = OpamJson.t
JSON
type 'a
updates = {
|
created : 'a ; |
|
updated : 'a ; |
|
deleted : 'a ; |
|
changed : 'a ; |
}
Updates