read-env-var alternatives and similar packages
Based on the "read" category.
Alternatively, view read-env-var alternatives based on common mentions on social networks and blogs.
Do you think we are missing an alternative of read-env-var or a related project?
This Haskell module exports functions for safely reading environment variables.
>>> import System.ReadEnvVar (readEnvVarDef, setEnv) >>> setEnv "TEST_ENV_VAR" "1000" >>> readEnvDef "TEST_ENV_VAR" 5 :: IO Int 1000 >>> readEnvDef "THIS_ENV_VAR_WILL_NOT_EXIST" 5 :: IO Int 5
See the module documentation on Hackage for many more examples of usage.
*Note that all licence references and agreements mentioned in the read-env-var README section above are relevant to that project's source code only.