package functoria

  1. Overview
  2. Docs
On This Page
  1. Alias
A DSL to organize functor applications

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mirage-4.0.0.tbz
sha256=f804161872de6cf20699364f09d03370ed06aafffb12f1d586190832c73a194d
sha512=75c1c1cac4c6f862c0055381c7ced123785193234b40da8a8e238cb289cba1a4494378587c4edf2ed872aee7fbfc756f84087941c1037ac19cbd1733ff6cca6a

doc/functoria/Functoria/Key/Alias/index.html

Module Key.AliasSource

Alias allows to define virtual keys in terms of other keys at configuration time only.

Alias

Sourcetype 'a t

The type for key alias.

Sourceval add : 'b key -> ('a -> 'b option) -> 'a t -> 'a t

add k f a set a as an alias for the key k: setting a on the command-line will set k to f applied to a's value. If f returns None, no value is set.

Sourceval flag : Arg.info -> bool t

flag is similar to Arg.flag but defines configure-only command-line flag alias. Set stage to `Configure.