| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Configuration.Dotenv.Internal
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.
Constructors
| Config | |
Fields
| |
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
Constructors
| ParsedVariable VarName VarValue |
Instances
| Show ParsedVariable Source # | |
Defined in Configuration.Dotenv.ParsedVariable Methods showsPrec :: Int -> ParsedVariable -> ShowS # show :: ParsedVariable -> String # showList :: [ParsedVariable] -> ShowS # | |
| Eq ParsedVariable Source # | |
Defined in Configuration.Dotenv.ParsedVariable Methods (==) :: ParsedVariable -> ParsedVariable -> Bool # (/=) :: ParsedVariable -> ParsedVariable -> Bool # | |
Possible state of values
Constructors
| Unquoted VarContents | |
| SingleQuoted VarContents | |
| DoubleQuoted VarContents |
type VarContents = [VarFragment] Source #
List of VarFragment
data VarFragment Source #
Placeholder for possible values
Constructors
| VarInterpolation String | |
| VarLiteral String | |
| CommandInterpolation String [String] |
Instances
| Show VarFragment Source # | |
Defined in Configuration.Dotenv.ParsedVariable Methods showsPrec :: Int -> VarFragment -> ShowS # show :: VarFragment -> String # showList :: [VarFragment] -> ShowS # | |
| Eq VarFragment Source # | |
Defined in Configuration.Dotenv.ParsedVariable | |
interpolateParsedVariables :: [ParsedVariable] -> IO [(String, String)] Source #
Interpotales parsed variables