Module

Dotenv.Internal.Environment

Package
purescript-dotenv
Repository
nicholassaunders/purescript-dotenv

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

#ENVIRONMENT Source

type ENVIRONMENT = FProxy (EnvironmentF)

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 :: SProxy "environment"

#handleEnvironment Source

handleEnvironment :: EnvironmentF ~> Aff

The default interpreter used for reading or modifying the environment

#lookupEnv Source

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

Constructs the value used to look up an environment variable.

#setEnv Source

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

Constructs the value used to set an environment variable.