Module

Dotenv.Internal.Environment

This module encapsulates the logic for reading or modifying the environment.

#ENVIRONMENT

type ENVIRONMENT r = (environment :: EnvironmentF | r)

The effect type used for reading or modifying the environment

#EnvironmentF

data EnvironmentF a

A data type representing the supported operations.

Constructors

Instances

#_environment

_environment :: SProxy "environment"

#handleEnvironment

handleEnvironment :: EnvironmentF ~> Aff

The default interpreter used for reading or modifying the environment

#lookupEnv

lookupEnv :: forall r. String -> Run (ENVIRONMENT r) (Maybe String)

Constructs the value used to look up an environment variable.

#setEnv

setEnv :: forall r. String -> String -> Run (ENVIRONMENT r) Unit

Constructs the value used to set an environment variable.

Modules