dotenv-0.6.0.3: Loads environment variables from dotenv files

Copyright© 2015–2018 Stack Builders Inc.
LicenseMIT
MaintainerStack Builders <hackage@stackbuilders.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Configuration.Dotenv.Scheme.Types

Description

Types for loadSafeFile (e. g., ValidatorMap)

Synopsis

Documentation

data Env Source #

 

Constructors

Env 
Instances
Eq Env Source # 
Instance details

Defined in Configuration.Dotenv.Scheme.Types

Methods

(==) :: Env -> Env -> Bool #

(/=) :: Env -> Env -> Bool #

Ord Env Source # 
Instance details

Defined in Configuration.Dotenv.Scheme.Types

Methods

compare :: Env -> Env -> Ordering #

(<) :: Env -> Env -> Bool #

(<=) :: Env -> Env -> Bool #

(>) :: Env -> Env -> Bool #

(>=) :: Env -> Env -> Bool #

max :: Env -> Env -> Env #

min :: Env -> Env -> Env #

Show Env Source # 
Instance details

Defined in Configuration.Dotenv.Scheme.Types

Methods

showsPrec :: Int -> Env -> ShowS #

show :: Env -> String #

showList :: [Env] -> ShowS #

FromJSON Env Source # 
Instance details

Defined in Configuration.Dotenv.Scheme.Types

type ValidatorMap = Map Text (Text -> Bool) Source #

Parameters:

  • Key: Name of the format to check.
  • Value: Function to check if some text meets the condition.

defaultValidatorMap :: ValidatorMap Source #

Default configuration for loadSafeFile. It currently checks: bool, integer, and text.