env-guard (hackage): This package provides functions for validating presence / contents of environment variables, and conditionally running IO actions based on the result.
Keywords: environment|library|mit|system|environment-variables|haskell