Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Package configuration file interface.
A package configuration file is expected at the root of every package. The file is used to figure out the module path under which the package must be placed. This information is also useful for installation.
Configuration file format (using an example).
==== lambdapi.pkg ============ # only two required fields: package_name = my_package root_path = contrib.my_pack # comments not at end of line undefined = ignored ==============================
Configuration data read from a file.
val read : string -> config_data
read fname
reads configuration data from the file fname
. The exception Fatal
is raised in case of error (non-existing file, bad format).
find_config fname
looks for a configuration file above fname
, which is typically a source file or an object file (it can also be a directory). If there is no configuration file in the same directory as fname
, then we look in the parent directory and so on, up to the root or as long as no Sys_error
is raised. Note that fname
is first normalized with a call to Filename.realpath
.