package omod

  1. Overview
  2. Docs

Omod configuration.

type t

The type for configuration.

val v : ?libdir:Omod.fpath -> ?cache:Omod.fpath -> unit -> (t, string) result

v ~libdir ~cache () is a configuration with given libdir or and cache. If unspecified they are discovered.

val libdir : t -> Omod.fpath

libdir c is c's library directory.

val cache : t -> Omod.fpath

cache c is c's cache directory.

val pp : Format.formatter -> t -> unit

pp formats configurations.

Environment variables

val libdir_env : string

libdir_env is the environment variable that can be used to define a libdir.

val cache_env : string

cache_env is the environment variable that can be used to define an cache directory.

OCaml

Innovation. Community. Security.