package opam-format
Install
dune-project
Dependency
Authors
-
David Allsopp
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
KKate Deplaix <kit-ty-kate@outlook.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=79d057547b7114e31334bc4f556bc541
sha512=707b652997bae086003c4164029ed40a68e9c465b4ce1731d0f8ccc0a496c5b6d9011e45bc2b6f73e56d316e54bce7c82becb83bd7de4fa53b0795ad7ae7032a
doc/opam-format/OpamTypesBase/index.html
Module OpamTypesBaseSource
Helper functions on the base types (from OpamTypes)
This module contains basic utility functions and stringifiers for the basic OPAM types present in OpamTypes.ml
Extract a package from a package action.
val map_atomic_action :
('a -> 'b) ->
'a OpamTypes.atomic_action ->
'b OpamTypes.atomic_actionval map_highlevel_action :
('a -> 'b) ->
'a OpamTypes.highlevel_action ->
'b OpamTypes.highlevel_actionval map_concrete_action :
('a -> 'b) ->
'a OpamTypes.concrete_action ->
'b OpamTypes.concrete_actionExtract a packages from a package action. This returns all concerned packages, including the old version for an up/down-grade.
Pretty-prints the cause of an action
Pretty-print
The empty file position
val nullify_pos_map :
('a -> 'b) ->
'a OpamParserTypes.FullPos.with_pos ->
'b OpamParserTypes.FullPos.with_posval pos_best :
OpamParserTypes.FullPos.pos ->
OpamParserTypes.FullPos.pos ->
OpamParserTypes.FullPos.pospos_best pos1 pos2 returns the most detailed position between pos1 and pos2 (defaulting to pos1)
Position in the given file, with unspecified line and column
Prints a file position
Makes sure to keep only the last binding for a given variable; doesn't preserve order
val filter_ident_of_string :
string ->
OpamTypes.name option list * OpamTypes.variable * (string * string) optionParses the data suitable for a filter.FIdent from a string. A self-reference _ parses to None.
val filter_ident_of_string_interp :
?accept:bool ->
string ->
OpamTypes.name option list * OpamTypes.variable * (string * string) optionLike filter_ident_of_string but parses also %{?pkg+:var:}% syntax for variables with package name that contains a +.
val string_of_filter_ident :
(OpamTypes.name option list * OpamTypes.variable * (string * string) option) ->
stringMap on a solver result
val env_update :
?comment:string ->
rewrite:'a OpamTypes.separator_path_format option ->
string ->
'b OpamTypes.env_update_op_kind ->
string ->
('a, 'b) OpamTypes.env_updateEnvironment update helpers
val env_update_resolved :
?comment:string ->
?rewrite:OpamTypes.spf_resolved OpamTypes.separator_path_format option ->
string ->
'a OpamTypes.env_update_op_kind ->
string ->
(OpamTypes.spf_resolved, 'a) OpamTypes.env_updateval env_update_unresolved :
?comment:string ->
?rewrite:OpamTypes.spf_unresolved OpamTypes.separator_path_format option ->
string ->
'a OpamTypes.env_update_op_kind ->
string ->
(OpamTypes.spf_unresolved, 'a) OpamTypes.env_updateval switch_selections_compare :
OpamTypes.switch_selections ->
OpamTypes.switch_selections ->
intComparators *
val switch_selections_equal :
OpamTypes.switch_selections ->
OpamTypes.switch_selections ->
bool