package opam-lib
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
AAnil Madhavapeddy <anil@recoil.org>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
Maintainers
Sources
sha256=625767c3465219cc8799aad1449c74279b31686db0821300cfdb92fbff17e9fd
md5=e0688c0cf9a55f93ee93f62d07cf6b74
doc/opam-lib.format/OpamPackage/index.html
Module OpamPackage
Package name and versions
module Version : sig ... endVersions
module Name : sig ... endNames
Package (name x version) pairs
include OpamStd.ABSTRACT
val of_string : string -> tval to_string : t -> stringval to_json : t -> OpamJson.tmodule Set : OpamStd.SET with type elt = tmodule Map : OpamStd.MAP with type key = tval of_string_opt : string -> t optionReturn None if nv is not a valid package name
val name_to_string : t -> stringTo fit in the GenericPackage type, for generic display functions
val version_to_string : t -> stringval of_filename : OpamFilename.t -> t optionGuess the package name from a filename. This function extracts name and version from /path/to/$name.$version/opam
val of_dirname : OpamFilename.Dir.t -> t optionGuess the package name from a directory name. This function extracts $name and $version from /path/to/$name.$version/
val of_archive : OpamFilename.t -> t optionGuess the package name from an archive file. This function extract $name and $version from /path/to/$name.$version+opam.tar.gz
val to_map : Set.t -> Version.Set.t Name.Map.tConvert a set of pairs to a map name -> versions
val versions_of_packages : Set.t -> Version.Set.tExtract the versions from a collection of packages
val versions_of_name : Set.t -> Name.t -> Version.Set.tReturn the list of versions for a given package
val names_of_packages : Set.t -> Name.Set.tExtract the naes from a collection of packages
Returns true if the set contains a package with the given name
val packages_of_names : Set.t -> Name.Set.t -> Set.tReturn all the packages with one of the given names
Return the maximal available version of a package name from a set. Raises Not_found if no such package available.
val hash : t -> intHash a package
val list : OpamFilename.Dir.t -> Set.tReturn all the package descriptions in a given directory
val prefixes : OpamFilename.Dir.t -> string option Map.tReturn all the package descriptions in the current directory (and their eventual prefixes).
Errors
Unknown package: either the name is unknown, or the version does not exist.
module Graph : OpamParallel.GRAPH with type V.t = tParallel executions.