A dependency set describes all the files required to build an artifact.
Types
The representation of a set of dependencies, containing Path.t
. Under the bonnet, dependencies are defined by a Set
.
Monoid
A dependency set is a monoid with the union of two sets as the internal composition operator and the empty set as the neutral element.
concat a b
constructs the union of two sets of dependencies. concat a b = concat b a
.
empty
returns the neutral element of the monoid. It the empty set and concat neutral a = concat a neutral = a
.
reduce sets
merge many sets in one.
Building
singleton
is a set with only one dependency.
from_list list
build a set from a given list of path.
Compute deps
Retrieves information about sets of dependencies.
val get_mtimes : t -> int list Eff.t
get_mtimes deps
Returns a list of modification dates for a set of dependencies.
Serialization/Deserialization
Supports serialization and deserialization of dependency sets.
to_sexp deps
Converts a set of dependencies, deps
, into a Sexp
.
from_sexp sexp
try to converts a Sexp
into a set of dependencies.
Utils
val equal : t -> t -> bool
is_empty deps
returns true
if the dependencies set is empty, false
if not.