module Configuration.Dotenv.Types
( Config(..)
, defaultConfig
)
where
data Config = Config
{ Config -> [FilePath]
configPath :: [FilePath]
, Config -> [FilePath]
configExamplePath :: [FilePath]
, Config -> Bool
configOverride :: Bool
} deriving (Config -> Config -> Bool
(Config -> Config -> Bool)
-> (Config -> Config -> Bool) -> Eq Config
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Config -> Config -> Bool
$c/= :: Config -> Config -> Bool
== :: Config -> Config -> Bool
$c== :: 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
showList :: [Config] -> ShowS
$cshowList :: [Config] -> ShowS
show :: Config -> FilePath
$cshow :: Config -> FilePath
showsPrec :: Int -> Config -> ShowS
$cshowsPrec :: Int -> Config -> ShowS
Show)
defaultConfig :: Config
defaultConfig :: Config
defaultConfig =
Config :: [FilePath] -> [FilePath] -> Bool -> Config
Config
{ configExamplePath :: [FilePath]
configExamplePath = []
, configOverride :: Bool
configOverride = Bool
False
, configPath :: [FilePath]
configPath = [ FilePath
".env" ]
}