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=d9b85326877d02ffee49caee2384f170
sha512=17d7d83b9de118332c121b9d3aa2e48f62a6270ea23e730a536b0f4ff060df85238c7c4ab53a89bcc3b3193d52d14358831bd9bed30a4ac699e44e4c3003b8b0
doc/opam-format/OpamTypesBase/index.html
Module OpamTypesBase
Source
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_action
val map_highlevel_action :
('a -> 'b) ->
'a OpamTypes.highlevel_action ->
'b OpamTypes.highlevel_action
val map_concrete_action :
('a -> 'b) ->
'a OpamTypes.concrete_action ->
'b OpamTypes.concrete_action
Extract 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_pos
val pos_best :
OpamParserTypes.FullPos.pos ->
OpamParserTypes.FullPos.pos ->
OpamParserTypes.FullPos.pos
pos_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) option
Parses the data suitable for a filter.FIdent from a string. May raise Failure msg
on bad package names. A self-reference _
parses to None
val filter_ident_of_string_interp :
?accept:bool ->
string ->
OpamTypes.name option list * OpamTypes.variable * (string * string) option
Like Filter_ident_of_string
but parses also '%?pkg+:var:
% syntax for variables with package name that contains a '+'. if accept
is false
, Parse_variable (pkg,var)
is raised when several '+' are encountered in package name, i.e. 'pkg++:var'.
val string_of_filter_ident :
(OpamTypes.name option list * OpamTypes.variable * (string * string) option) ->
string
Map 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_update
Environment 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_update
val 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_update