module OpamTypes: sig .. end
Common types used by other modules
exception Lexer_error of string
Exceptions
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 =
Generalized file type
type 'a download =
| |
Up_to_date of 'a |
| |
Not_available |
| |
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 section = OpamVariable.Section.t
Section names
type full_section = OpamVariable.Section.Full.t
Fully qualified section names
type variable_contents = OpamVariable.variable_contents =
| |
B of bool |
| |
S of string |
Content of user-defined variables
type ppflag =
| |
Camlp4 of string list |
| |
Cmd of string list |
Content of pp variables
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 '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 | `http | `local ]
Repository kind
val string_of_repository_kind : [ `darcs | `git | `http | `local ] -> string
Pretty-print repository kinds.
val repository_kind_of_string : string -> [ `darcs | `git | `http | `local ]
Parser of repository kinds. Raise an error if the kind is not valid.
type address = dirname
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 |
| |
Upstream_changes |
| |
Unknown |
The possible causes of an action.
val action_contents : 'a action -> 'a
Extract a package from a package action.
module type ACTION_GRAPH = sig .. end
Graph of package actions
module type PKG = sig .. end
Signature of packages
module MakeActionGraph:
Functor to create a graph af actions
module PackageAction: PKG with type t = package
Package actions
module PackageActionGraph: ACTION_GRAPH with type package = package
Graph of OPAM packages
type solution = PackageActionGraph.solution
The type for solutions
type solver_result =
| |
Nothing_to_do |
| |
OK |
| |
Aborted |
| |
No_solution |
| |
Error of package action list |
Solver result
type ('a, 'b) result =
| |
Success of 'a |
| |
Conflicts of (unit -> 'b) |
Solver result
type 'a request = {
}
Solver request
type user_action =
user request action
type universe = {
}
Solver universe
Command line arguments
type upload = {
}
Upload arguments
val string_of_upload : upload -> string
Pretty-print
type pin_option =
Pinned packages options
type pin = {
}
Pinned packages
val string_of_pin : pin -> string
Pretty-printing of pinned packages
type pin_kind = [ `darcs | `git | `local | `unpin | `version ]
Pin kind
val pin_kind_of_string : string -> pin_kind
Pretty-printing of pin kinds.
val string_of_pin_kind : pin_kind -> string
Parsing of pin kinds. Raise an error if it is not a valid value.
val pin_option_of_string : ?kind:pin_kind -> string -> pin_option
Read pin options args
val path_of_pin_option : pin_option -> string
val kind_of_pin_option : pin_option -> pin_kind
type config = {
|
conf_is_rec :bool; |
|
conf_is_byte :bool; |
|
conf_is_link :bool; |
|
conf_options :OpamVariable.Section.Full.t list; |
}
Configuration requests
type shell = [ `csh | `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 symbol =
| |
Eq |
| |
Neq |
| |
Le |
| |
Ge |
| |
Lt |
| |
Gt |
Symbols
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 value =
| |
Bool of bool |
| |
Int of int |
| |
String of string |
| |
Symbol of string |
| |
Ident of string |
| |
List of value list |
| |
Group of value list |
| |
Option of value * value list |
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 = {
|
file_contents :file_item list; |
|
file_name :string; |
}
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) |
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