Documentation

Hale.Base.System.Environment

@[inline]

Look up an environment variable by name.

$$\text{lookupEnv} : \text{String} \to \text{IO}\ (\text{Option}\ \text{String})$$

Returns some value if the variable is set, none otherwise.

Equations
Instances For

    Get an environment variable, returning empty string if not set.

    $$\text{getEnv} : \text{String} \to \text{IO}\ \text{String}$$

    Total accessor: returns "" when the variable is absent.

    Equations
    Instances For

      Get the value of the HOME environment variable.

      $$\text{getHome} : \text{IO}\ (\text{Option}\ \text{String})$$

      Equations
      Instances For

        Get the value of the PATH environment variable.

        $$\text{getPath} : \text{IO}\ (\text{Option}\ \text{String})$$

        Equations
        Instances For