Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Config = Config {}
- defaultConfig :: Config
- configParser :: Parser [ParsedVariable]
- data ParsedVariable = ParsedVariable VarName VarValue
- type VarName = String
- data VarValue
- type VarContents = [VarFragment]
- data VarFragment
- interpolateParsedVariables :: [ParsedVariable] -> IO [(String, String)]
- parseFile :: MonadIO m => FilePath -> m [(Text, Text)]
Documentation
Configuration Data Types with extra options for executing dotenv.
Config | |
|
defaultConfig :: Config Source #
Default configuration. Use .env file without .env.example strict envs and without overriding.
configParser :: Parser [ParsedVariable] Source #
Returns a parser for a Dotenv configuration file. Accepts key and value
arguments separated by =
. Comments in all positions are handled
appropriately.
data ParsedVariable Source #
Name and value pair
Instances
Show ParsedVariable Source # | |
Defined in Configuration.Dotenv.ParsedVariable showsPrec :: Int -> ParsedVariable -> ShowS # show :: ParsedVariable -> String # showList :: [ParsedVariable] -> ShowS # | |
Eq ParsedVariable Source # | |
Defined in Configuration.Dotenv.ParsedVariable (==) :: ParsedVariable -> ParsedVariable -> Bool # (/=) :: ParsedVariable -> ParsedVariable -> Bool # |
type VarContents = [VarFragment] Source #
List of VarFragment
data VarFragment Source #
Placeholder for possible values
Instances
Show VarFragment Source # | |
Defined in Configuration.Dotenv.ParsedVariable showsPrec :: Int -> VarFragment -> ShowS # show :: VarFragment -> String # showList :: [VarFragment] -> ShowS # | |
Eq VarFragment Source # | |
Defined in Configuration.Dotenv.ParsedVariable (==) :: VarFragment -> VarFragment -> Bool # (/=) :: VarFragment -> VarFragment -> Bool # |
interpolateParsedVariables :: [ParsedVariable] -> IO [(String, String)] Source #
Interpotales parsed variables