module Configuration.Dotenv.Types
( Config(..)
, defaultConfig
)
where
import Data.Default.Class
data Config = Config
{ Config -> [FilePath]
configPath :: [FilePath]
, Config -> [FilePath]
configExamplePath :: [FilePath]
, Config -> Bool
configOverride :: Bool
, Config -> Bool
configVerbose :: Bool
, Config -> Bool
configDryRun :: Bool
, Config -> Bool
allowDuplicates :: Bool
} deriving (Config -> Config -> Bool
(Config -> Config -> Bool)
-> (Config -> Config -> Bool) -> Eq Config
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Config -> Config -> Bool
== :: Config -> Config -> Bool
$c/= :: Config -> Config -> Bool
/= :: Config -> Config -> Bool
Eq, Int -> Config -> ShowS
[Config] -> ShowS
Config -> FilePath
(Int -> Config -> ShowS)
-> (Config -> FilePath) -> ([Config] -> ShowS) -> Show Config
forall a.
(Int -> a -> ShowS) -> (a -> FilePath) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Config -> ShowS
showsPrec :: Int -> Config -> ShowS
$cshow :: Config -> FilePath
show :: Config -> FilePath
$cshowList :: [Config] -> ShowS
showList :: [Config] -> ShowS
Show)
defaultConfig :: Config
defaultConfig :: Config
defaultConfig =
Config
{ configExamplePath :: [FilePath]
configExamplePath = []
, configOverride :: Bool
configOverride = Bool
False
, configPath :: [FilePath]
configPath = [ FilePath
".env" ]
, configVerbose :: Bool
configVerbose = Bool
False
, configDryRun :: Bool
configDryRun = Bool
False
, allowDuplicates :: Bool
allowDuplicates = Bool
True
}
instance Default Config where def :: Config
def = Config
defaultConfig