loadConfig :: FilePath -> IO Config
loadConfig path = do
  yaml <- BS.readFile path
  case decodeEither yaml of
    Left err     -> error $ "Failed to load config file: " ++ err
    Right config -> return config
loadConfig :: FilePath -> IO Config
loadConfig path = do
  yaml <- BS.readFile path
  case decodeEither yaml of
    Left err     -> error $ "Failed to load config file: " ++ err
    Right config -> return config
loadConfig path = do
  yaml <- BS.readFile path
  case decodeEither yaml of
    Left err     -> error $ "Failed to load config file: " ++ err
    Right config -> return config