Module

TypedEnv

Package
purescript-typedenv
Repository
nsaunders/purescript-typedenv

The base module for the TypedEnv library

#fromEnv Source

fromEnv :: forall r rl. RowToList r rl => ReadEnv rl () r => Proxy (Record r) -> Object String -> Either (List EnvError) (Record r)

Gets a record of environment variables from a Node environment.

#printEnvError Source

printEnvError :: List EnvError -> String

Gets the error message for a given EnvError value.

#EnvError Source

data EnvError

An error that can occur while reading an environment variable

Constructors

Instances

#ParseValue Source

class ParseValue ty  where

Parses a String value to the specified type.

Members

Instances

#ReadValue Source

class ReadValue ty  where

Retrieves and parses an environment variable value.

Members

Instances

#ReadEnv Source

class ReadEnv :: RowList Type -> Row Type -> Row Type -> Constraintclass ReadEnv (rl :: RowList Type) (rin :: Row Type) (rout :: Row Type) | rl -> rout where

Transforms a list of environment variable specifications to a record.

Members

Instances

Modules
TypedEnv