Config_file is an OCaml library used to manage the configuration file(s) of an application. You simply define your options and it performs the loading and saving of the options. Each option is defined from an option class (for example an "int" option) or from a combination of classes (for example to create "list of int" options).
Config_file can be downloaded from the OCamlcore forge. Latest version is 1.2 and was released on 2014, march 20th.
Compilation of Config_file requires OCaml >= 4.00 to be installed.
To compile and install:
tar xvfz config-file-X.Y.tar.gz cd config-file-X.Y ./configure make make install
Installation is done with findlib, as a package called "config-file".
The ocamldoc-generated documentation can be browsed here.
An example of code using Config_file is included in the distribution.
Maxence Guesdon <Maxence 'DOT' Guesdon 'AT' inria 'DOT' fr>
Jean-Baptiste Rouquier, based on code by Fabrice Le Fessant and Maxence Guesdon.