| Copyright | © 2015–2018 Stack Builders Inc. |
|---|---|
| License | MIT |
| Maintainer | Stack Builders <hackage@stackbuilders.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Configuration.Dotenv.Scheme.Parser
Description
Helpers for loadSafeFile
Synopsis
- defaultValidatorMap :: ValidatorMap
- parseEnvsWithScheme :: ValidatorMap -> [(String, EnvType)] -> Either [String] ()
- typeValidator :: ValidatorMap -> String -> EnvType -> Either String ()
Documentation
defaultValidatorMap :: ValidatorMap Source #
Default configuration for loadSafeFile. It currently checks:
bool, integer, and text.
Arguments
| :: ValidatorMap | MapFormat validations |
| -> [(String, EnvType)] | Value and Type |
| -> Either [String] () |
Arguments
| :: ValidatorMap | MapFormat validations |
| -> String | Value of the env variable |
| -> EnvType | Type that the env variable should have |
| -> Either String () |