dotenv 0.6.0.3 → 0.7.0.0
raw patch · 3 files changed
+11/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Configuration.Dotenv.Parse: configParser :: Parser [ParsedVariable]
- Configuration.Dotenv.ParsedVariable: CommandInterpolation :: String -> VarFragment
- Configuration.Dotenv.ParsedVariable: DoubleQuoted :: VarContents -> VarValue
- Configuration.Dotenv.ParsedVariable: ParsedVariable :: VarName -> VarValue -> ParsedVariable
- Configuration.Dotenv.ParsedVariable: SingleQuoted :: VarContents -> VarValue
- Configuration.Dotenv.ParsedVariable: Unquoted :: VarContents -> VarValue
- Configuration.Dotenv.ParsedVariable: VarInterpolation :: String -> VarFragment
- Configuration.Dotenv.ParsedVariable: VarLiteral :: String -> VarFragment
- Configuration.Dotenv.ParsedVariable: data ParsedVariable
- Configuration.Dotenv.ParsedVariable: data VarFragment
- Configuration.Dotenv.ParsedVariable: data VarValue
- Configuration.Dotenv.ParsedVariable: instance GHC.Classes.Eq Configuration.Dotenv.ParsedVariable.ParsedVariable
- Configuration.Dotenv.ParsedVariable: instance GHC.Classes.Eq Configuration.Dotenv.ParsedVariable.VarFragment
- Configuration.Dotenv.ParsedVariable: instance GHC.Classes.Eq Configuration.Dotenv.ParsedVariable.VarValue
- Configuration.Dotenv.ParsedVariable: instance GHC.Show.Show Configuration.Dotenv.ParsedVariable.ParsedVariable
- Configuration.Dotenv.ParsedVariable: instance GHC.Show.Show Configuration.Dotenv.ParsedVariable.VarFragment
- Configuration.Dotenv.ParsedVariable: instance GHC.Show.Show Configuration.Dotenv.ParsedVariable.VarValue
- Configuration.Dotenv.ParsedVariable: interpolateParsedVariables :: [ParsedVariable] -> IO [(String, String)]
- Configuration.Dotenv.ParsedVariable: type VarContents = [VarFragment]
- Configuration.Dotenv.ParsedVariable: type VarName = String
- Configuration.Dotenv.Scheme: checkConfig :: ValidatorMap -> [(String, String)] -> [Env] -> IO ()
- Configuration.Dotenv.Scheme: checkScheme :: [Env] -> [Env]
- Configuration.Dotenv.Scheme: readScheme :: FilePath -> IO [Env]
- Configuration.Dotenv.Scheme.Helpers: joinEnvs :: [Env] -> [(String, String)] -> [(Env, (String, String))]
- Configuration.Dotenv.Scheme.Helpers: matchValueAndType :: [(Env, (String, String))] -> [(String, EnvType)]
- Configuration.Dotenv.Scheme.Helpers: missingDotenvs :: [Env] -> [(Env, (String, String))] -> [Env]
- Configuration.Dotenv.Scheme.Helpers: missingSchemeEnvs :: [(String, String)] -> [(Env, (String, String))] -> [(String, String)]
- Configuration.Dotenv.Scheme.Helpers: sepWithCommas :: [String] -> String
- Configuration.Dotenv.Scheme.Helpers: showMissingDotenvs :: [Env] -> String
- Configuration.Dotenv.Scheme.Helpers: showMissingSchemeEnvs :: [(String, String)] -> String
- Configuration.Dotenv.Scheme.Parser: defaultValidatorMap :: ValidatorMap
- Configuration.Dotenv.Scheme.Parser: parseEnvsWithScheme :: ValidatorMap -> [(String, EnvType)] -> Either [String] ()
- Configuration.Dotenv.Scheme.Parser: typeValidator :: ValidatorMap -> String -> EnvType -> Either String ()
- Configuration.Dotenv.Scheme.Types: Env :: String -> EnvType -> Bool -> Env
- Configuration.Dotenv.Scheme.Types: EnvType :: Text -> EnvType
- Configuration.Dotenv.Scheme.Types: [envName] :: Env -> String
- Configuration.Dotenv.Scheme.Types: [envType] :: Env -> EnvType
- Configuration.Dotenv.Scheme.Types: [required] :: Env -> Bool
- Configuration.Dotenv.Scheme.Types: data Env
- Configuration.Dotenv.Scheme.Types: defaultValidatorMap :: ValidatorMap
- Configuration.Dotenv.Scheme.Types: instance Data.Aeson.Types.FromJSON.FromJSON Configuration.Dotenv.Scheme.Types.Env
- Configuration.Dotenv.Scheme.Types: instance Data.Aeson.Types.FromJSON.FromJSON Configuration.Dotenv.Scheme.Types.EnvType
- Configuration.Dotenv.Scheme.Types: instance GHC.Classes.Eq Configuration.Dotenv.Scheme.Types.Env
- Configuration.Dotenv.Scheme.Types: instance GHC.Classes.Eq Configuration.Dotenv.Scheme.Types.EnvType
- Configuration.Dotenv.Scheme.Types: instance GHC.Classes.Ord Configuration.Dotenv.Scheme.Types.Env
- Configuration.Dotenv.Scheme.Types: instance GHC.Classes.Ord Configuration.Dotenv.Scheme.Types.EnvType
- Configuration.Dotenv.Scheme.Types: instance GHC.Show.Show Configuration.Dotenv.Scheme.Types.Env
- Configuration.Dotenv.Scheme.Types: instance GHC.Show.Show Configuration.Dotenv.Scheme.Types.EnvType
- Configuration.Dotenv.Scheme.Types: newtype EnvType
- Configuration.Dotenv.Scheme.Types: type ValidatorMap = Map Text (Text -> Bool)
- Configuration.Dotenv.Text: parseFile :: MonadIO m => FilePath -> m [(Text, Text)]
- Configuration.Dotenv.Types: Config :: [FilePath] -> [FilePath] -> Bool -> Config
- Configuration.Dotenv.Types: [configExamplePath] :: Config -> [FilePath]
- Configuration.Dotenv.Types: [configOverride] :: Config -> Bool
- Configuration.Dotenv.Types: [configPath] :: Config -> [FilePath]
- Configuration.Dotenv.Types: data Config
- Configuration.Dotenv.Types: defaultConfig :: Config
- Configuration.Dotenv.Types: instance GHC.Classes.Eq Configuration.Dotenv.Types.Config
- Configuration.Dotenv.Types: instance GHC.Show.Show Configuration.Dotenv.Types.Config
Files
- CHANGELOG.md +3/−0
- app/Main.hs +6/−3
- dotenv.cabal +2/−2
CHANGELOG.md view
@@ -1,4 +1,7 @@ ## MASTER+## Dotenv 0.7.0.0+* Hide helper modules in other-modules+ ## Dotenv 0.6.0.3 * Reexport `defaultConfig` in `Configuration.Dotenv` (thanks to: matsubara0507)
app/Main.hs view
@@ -13,9 +13,12 @@ import Control.Monad (void, unless) -import Configuration.Dotenv (loadFile, loadSafeFile)-import Configuration.Dotenv.Types (Config(..), defaultConfig)-import Configuration.Dotenv.Scheme.Parser ( defaultValidatorMap )+import Configuration.Dotenv+ (Config(..)+ , loadFile+ , loadSafeFile+ , defaultConfig+ , defaultValidatorMap) import System.Process (system) import System.Exit (exitWith)
dotenv.cabal view
@@ -1,5 +1,5 @@ name: dotenv-version: 0.6.0.3+version: 0.7.0.0 synopsis: Loads environment variables from dotenv files homepage: https://github.com/stackbuilders/dotenv-hs description:@@ -78,7 +78,7 @@ library exposed-modules: Configuration.Dotenv- , Configuration.Dotenv.Parse+ other-modules: Configuration.Dotenv.Parse , Configuration.Dotenv.ParsedVariable , Configuration.Dotenv.Text , Configuration.Dotenv.Types