Popularity
4.1
Stable
Activity
0.0
Stable
3
5
0
Monthly Downloads: 11
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v1.0.0.0
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?
README
System.ReadEnvVar
This Haskell module exports functions for safely reading environment variables.
Usage
>>> 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.