package opam-format
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 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. May raise Failure msg on bad package names. A self-reference _ parses to None
val string_of_filter_ident :
(OpamTypes.name option list * OpamTypes.variable * (string * string) option) ->
stringMap on a solver result