BuildenvA module that computes information about the artifacts produced by a build environment (e.g. ocamlbuild, jbuilder, etc.)
val implementation_suffix : string refThe suffix for implementation files (i.e. ".ml").
is_ocaml f returns true if and only if f is a valid OCaml file (determined using file extensions).
module_of_filename f returns the (captialized) name of the module that the file f will be compiled to.
val cmt_filename : lib:library_name option -> file:file_name -> stringcmt_filename ~lib ~file returns the basename of .cmt or .cmti file that the source file will be compiled to as part of the lib library.
val object_filename : lib:library_name option -> file:file_name -> stringobject_filename ~lib ~file returns the basename of .cmo or .cmi file that the source file will be compiled to as part of the lib library.
val source_info : Compiler.Ident.t -> library_name option * Module.name_tsource_info id returns the source-level module name and library corresponding to the build-level module name contained in the identifier id.
val wrap_lookup :
(Compiler.Longident.t -> Compiler.Path.t) ->
?backup_lib:library_name ->
(library_name option * Compiler.Longident.t) ->
Compiler.Path.twrap_lookup f takes a compiler lookup function f that transforms a long identifier into a path (perhaps obtained as a closure over one of the Env.lookup_ functions), TODO
Converts an internal identifier to a Longident.t. This function lives here since the conversion depends on the build environment to turn library information (which the compiler is not aware of) into identifier information understood by the compiler.
module Factorise : sig ... endval register_lib :
?loc:[ `File of string | `Dir of string ] ->
library_name ->
unitRegister a library name.