Module B0_ocaml.Deps

module Deps: sig .. end
OCaml source module dependencies.

Computes OCaml source module dependencies via ocamldep.


type t 
The type for module dependencies.
val write : ?opts:B0.Cmd.t -> B0.Build.t -> srcs:B0.Fpath.t list -> B0.Fpath.t -> unit
write b ~srcs file computes module dependencies of srcs to file in b. opts are optional arguments that can be passed to the B0_ocaml.Tool.ocamldep invocation (defaults to B0.Cmd.empty).
val read : B0.Build.t -> B0.Fpath.t -> dst:B0.Fpath.t -> t B0.Build.fiber
read b file reads a B0_ocaml.Deps.write from file and continues with source file module dependencies to be compiled in a directory dst.

Low level interface

val of_ocamldep_output : src:B0.Fpath.t ->
string -> ('a -> B0.Fpath.t -> string list -> 'a) -> 'a -> 'a B0.result
of_ocamldep_output ~src data f acc parses ocamldep -modules output from data and folds f starting with acc over each file dependencies. src is the filename used to report parse errors.