package patoline

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The Config module provides an interface to configuration files.

type t

Type of a configuration. This is the abstract type corresponding to the contents of a configuration file.

type config = t
val get : string -> t -> Data.t

Lookup a field in a configuration.

val write : Stdlib.out_channel -> t -> unit

Write a configuratio to an out_channel.

val read : t -> Stdlib.in_channel -> t

Read a configuratio from an in_channel, given a default value for the configuration. It is used for checking the type of fields, and for providing default values to missing fields.

OCaml

Innovation. Community. Security.