Module

Dotenv.Internal.Environment

Package
purescript-dotenv
Repository
nsaunders/purescript-dotenv

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

#ENVIRONMENT Source

type ENVIRONMENT :: Row (Type -> Type) -> Row (Type -> Type)type ENVIRONMENT r = (environment :: EnvironmentF | r)

The effect type used for reading or modifying the environment

#EnvironmentF Source

data EnvironmentF a

A data type representing the supported operations.

Constructors

Instances

#_environment Source

_environment :: Proxy @Symbol "environment"

#handleEnvironment Source

handleEnvironment :: EnvironmentF ~> Aff

The default interpreter used for reading or modifying the environment

#lookupEnv Source

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

Constructs the value used to look up an environment variable.

#setEnv Source

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

Constructs the value used to set an environment variable.