diff options
| author | LLLL Colonq <llll@colonq> | 2025-06-03 02:37:51 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-06-03 02:37:51 -0400 |
| commit | ccb71807423d306d0718e9f2a7189a4a3fdebe79 (patch) | |
| tree | 36e9bd0ccf9eee536e61baba95d8063d9414a215 /fig-monitor-bullfrog/src/Fig/Monitor/Bullfrog | |
| parent | a931453581d7aa9882469d30fc4fda7c246b08e7 (diff) | |
Remove bullfrog
Diffstat (limited to 'fig-monitor-bullfrog/src/Fig/Monitor/Bullfrog')
| -rw-r--r-- | fig-monitor-bullfrog/src/Fig/Monitor/Bullfrog/Utils.hs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/fig-monitor-bullfrog/src/Fig/Monitor/Bullfrog/Utils.hs b/fig-monitor-bullfrog/src/Fig/Monitor/Bullfrog/Utils.hs deleted file mode 100644 index b0ae02b..0000000 --- a/fig-monitor-bullfrog/src/Fig/Monitor/Bullfrog/Utils.hs +++ /dev/null @@ -1,29 +0,0 @@ -{-# Language ApplicativeDo #-} - -module Fig.Monitor.Bullfrog.Utils - ( FigMonitorBullfrogException(..) - , Config(..) - , loadConfig - ) where - -import Fig.Prelude - -import qualified Toml - -newtype FigMonitorBullfrogException = FigMonitorBullfrogException Text - deriving (Show, Eq, Ord) -instance Exception FigMonitorBullfrogException - -newtype Config = Config - { authToken :: Text - } deriving (Show, Eq, Ord) - -configCodec :: Toml.TomlCodec Config -configCodec = do - authToken <- Toml.text "auth_token" Toml..= (\a -> a.authToken) - pure $ Config{..} - -loadConfig :: FilePath -> IO Config -loadConfig path = Toml.decodeFileEither configCodec path >>= \case - Left err -> throwM . FigMonitorBullfrogException $ tshow err - Right config -> pure config |
