Popularity
4.1
Declining
Activity
0.0
Stable
3
5
0

Monthly Downloads: 21
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: System     Read    
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?

Add another 'read' Package

README

System.ReadEnvVar

Build Status Hackage Stackage LTS Stackage Nightly BSD3 license

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.