package omod
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha512=cab9e8ab6ca6e836fdaa3dcf9552d31e4de2bf069fcab096c1565d204ff91fc3516cd017a13702d749580bd3563c462db3277ab036cfc5d3cb9703a08ddbb927
    
    
  doc/omod.support/Omod_support/Pkg/index.html
Module Omod_support.Pkg
Packages.
Packages represents sets of compilation objects indexed from a root Conf.libdir.
Packages
type t = Cobj.pkg_idThe type for packages.
val of_dir : ?err:Log.t -> Omod.fpath -> t listof_dir ~err dir are the packages found in dir. This is simply all the directory names inside dir and an ocaml package which points to ocamlc -where. err is used to report file system errors (defaults to Log.err).
find_cobjs ~err ~note ~acc pkg are the compilation objects contained in pkg pkg added to acc (defaults to []). err is used to report errors (defaults to Log.nil).
val pp : Format.formatter -> t -> unitpp formats package identifiers.
val pp_name : Format.formatter -> t -> unitpp_name formats the name of package identifiers.
Package signatures
type signature = Digest.tThe type for package signatures.
signature ~err pkg is a signature for package pkg. This is the digest of the mtimes of all the cobjs of pkg. err is used to report error (defaults to Log.err).
Package information
info ~signature ~cobjs is information for a package.
val pp_info : Format.formatter -> info -> unitpp_info formats package information.
Package databases
db ~err ~note ~progress ~init pkgs is database init (defaults to Map.empty) with packages pkgs added. Their information is computed by the function using err to report errors (defaults to Log.err), note to report indexing operations (defaults to Log.nil) and progress to indicate if progress should be reported on note (defaults to false).
val db_to_name_db : db -> (t * info) Omod.Private.String.Map.tdb_to_name_db db maps package names (rather than identifiers) to their information.
val db_to_cobj_index : db -> Cobj.Index.tdb_to_cobj_index db is a compilation object with the contents of the packages of db.
The type for package database differences.
- `New (pkg, sg), package- pkgwith signature- sgis new.
- `Gone pkg, package- pkgwas removed.
- `Changed (pkg, sg), package- pkgchanged to signature- sg.
val pp_diff : diff Omod.Private.Fmt.tpp_diff formats package database differences.
diff db sgs is the list of difference between db and package signatures sgs.