1
0
Fork 0

[haskell] back off when hitting the rate limit

This commit is contained in:
Julien Dessaux 2023-07-07 22:33:43 +02:00
parent d43972e5dc
commit f23fe74dbe
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 60 additions and 20 deletions

View file

@ -3,8 +3,7 @@
{-# LANGUAGE OverloadedStrings #-}
module SpaceTraders.Model.Agent
( Agent(accountId, credits, headquarters)
, agentSymbol
( Agent(..)
) where
import Data.Aeson
@ -13,10 +12,8 @@ import qualified Data.Text as T
data Agent = Agent { accountId :: T.Text
, credits :: Integer
--, faction :: Faction
, headquarters :: T.Text
, startingFaction :: T.Text
, symbol :: T.Text
} deriving (FromJSON, Generic, Show, ToJSON)
agentSymbol :: Agent -> T.Text
agentSymbol = symbol