From fbabf1d29a8a97d57d9609666c81701fe12979e1 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 19 Mar 2024 03:37:33 -0400 Subject: Update --- fig-frontend/src/Fig/Frontend/Utils.hs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'fig-frontend/src/Fig/Frontend/Utils.hs') diff --git a/fig-frontend/src/Fig/Frontend/Utils.hs b/fig-frontend/src/Fig/Frontend/Utils.hs index 20234e7..3081ddb 100644 --- a/fig-frontend/src/Fig/Frontend/Utils.hs +++ b/fig-frontend/src/Fig/Frontend/Utils.hs @@ -19,10 +19,11 @@ newtype FigFrontendException = FigFrontendException Text instance Exception FigFrontendException data Config = Config - { port :: Int - , assetPath :: FilePath - , clientId :: Text - , authToken :: Text + { port :: !Int + , assetPath :: !FilePath + , clientId :: !Text + , authToken :: !Text + , dbHost :: !Text } deriving (Show, Eq, Ord) configCodec :: Toml.TomlCodec Config @@ -31,6 +32,7 @@ configCodec = do assetPath <- Toml.string "asset_path" Toml..= (\a -> a.assetPath) clientId <- Toml.text "client_id" Toml..= (\a -> a.clientId) authToken <- Toml.text "auth_token" Toml..= (\a -> a.authToken) + dbHost <- Toml.text "db_host" Toml..= (\a -> a.dbHost) pure $ Config{..} loadConfig :: FilePath -> IO Config -- cgit v1.2.3