package mirage
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4184cbc7e51b0dcdcf4345c98818c34129ff42879ef091e54849faa57b29d397
sha512=cb54de5a1741c9b5702a5c5290feb01c41ac39b220bf7d249dbaf6506834f1ac5c832726230e8ecd2fbc49f5550f9109560434e01746f0d20b6b6578e7174961
doc/mirage.functoria/Functoria/Key/index.html
Module Functoria.KeySource
Configuration command-line arguments.
Configuration Keys
The type for configuration keys. Keys are used to parameterize the choice of module implementation.
create n a is the key named n whose contents is determined by parsing the command-line argument a.
Configuration Values
The type for configure-time and run-time values. Values are either pure or obtained by composing other values. Values might have data dependencies, which form an (implicit) directed and acyclic graph that need to be evaluated.
f $ v is is the value resulting from the application of f'value to v's value. $ is the usual app operator for applicative functor.
Abstract Keys
Parsing context
type context := Context.tThe type for values holding parsing context.
context ks is a Cmdliner term that evaluates into a parsing context for command-line arguments.
mem c v is true iff all the dependencies of v have been evaluated.
eval c v evaluates v in c's context, using default values if necessary.
get c k is k's value in c's context. If k is not present in c, it is k's default value.
find c k is k's value in c's context or None if k is not present in c.