This module contains basic utility functions and stringifiers for the
basic OPAM types present in OpamTypes.ml
Upcast a downloaded directory.
Upcast a downloaded file.
Print an address
Parse an address
Guess an address kind using url suffixes (.git, etc.) and prefixes
(http://, etc.). Defaults to `local. The returned address is a correct
path in case of file://
Scan the given directory for version control
Pretty-print repository kinds.
Parser of repository kinds. Raise an error if the kind is not valid.
Extract a package from a package 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
Convert a pin kind to a repository kind
Pretty-printing of pin kinds.
Parsing of pin kinds
Read pin options args
Convert a pin option to a string
Get the pin kind from a pin option
Get a pin_option from address and kind
The empty file position
Prints a file position
Map on a solver result