• en

Module OpamUnitsState

Opam units state
type state
Opam units state
val load_state : OpamState.state -> state
Load the units state.
val units : state -> OpamUnit.Set.t
Units
val unit_file : state -> OpamFilename.t OpamUnit.Map.t
Map from units to their .cmi files
val unit_import_graph : state -> OpamUnit.Graph.t
Graph with edges to units from their imports. Each call produces a fresh (mutable) graph.
It is possible that we cannot decide to which unit an import refers. In this case the import is ignored and a warning is emitted.
val libraries : state -> OpamLibrary.Set.t
Libraries
val library_directory : state -> OpamFilename.Dir.t OpamLibrary.Map.t
Map from libraries to their associated directory
val library_units : state -> OpamUnit.Set.t OpamLibrary.Map.t
Map from libraries to their units
val library_unit_import_graph : state -> OpamLibrary.t -> OpamUnit.Graph.t
The graph produced by unit_import_graph restricted to units within a given library
val package_libraries : state -> OpamLibrary.Set.t OpamPackage.Map.t
Map from packages to their associated libraries
val package_units : state -> OpamUnit.Set.t OpamPackage.Map.t
Map from packages to their associated units
val package_unit_import_graph : state -> OpamPackage.t -> OpamUnit.Graph.t
The graph produced by unit_import_graph restricted to units within a given package