Documentation

Hale.ConfiguratorPg.Data.Configurator

The empty configuration. $$\text{empty} : \text{Config}$$

Equations
Instances For

    Look up a key in the configuration. $$\text{lookup} : \text{String} \to \text{Config} \to \text{Option Value}$$

    Equations
    Instances For
      def Data.Configurator.lookupDefault (default_ : Value) (key : String) (config : Config) :

      Look up a key with a default fallback. $$\text{lookupDefault} : \text{Value} \to \text{String} \to \text{Config} \to \text{Value}$$

      Equations
      Instances For

        Look up a key, returning an error if not found. $$\text{require} : \text{String} \to \text{Config} \to \text{Except String Value}$$

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Parse a configuration file content into a Config. $$\text{parseConfig} : \text{String} \to \text{Except String Config}$$

          Parse rules:

          • Lines starting with # are comments (after trimming)
          • Empty lines are ignored
          • key = value format
          • Values can be: quoted strings, numbers, true/false
          • Dotted keys: a.b.c = value creates a flat lookup under key "a.b.c"
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Load a configuration file from disk. $$\text{load} : \text{String} \to \text{IO Config}$$

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For