Module
TypedEnv
- Package
- purescript-typedenv
- Repository
- nsaunders/purescript-typedenv
The base module for the TypedEnv library
#printEnvError Source
printEnvError :: List EnvError -> String
Gets the error message for a given EnvError
value.
#ParseValue Source
class ParseValue ty where
Parses a String
value to the specified type.
Members
parseValue :: String -> Maybe ty
Instances
#ReadEnv Source
class ReadEnv :: RowList Type -> Row Type -> Row Type -> Constraint
class ReadEnv (rl :: RowList Type) (rin :: Row Type) (rout :: Row Type) | rl -> rout where
Transforms a list of environment variable specifications to a record.
Members
readEnv :: Proxy rl -> Proxy rin -> Object String -> Either (List EnvError) (Builder (Record rin) (Record rout))
Instances
- Modules
- TypedEnv