battleplace 0.1.0.8 → 0.1.0.9
raw patch · 2 files changed
+9/−3 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ BattlePlace.WebApi.Types: ExternalSessionId :: Text -> ExternalSessionId
+ BattlePlace.WebApi.Types: [matchServerSession_externalSessionId] :: MatchServerSession -> !ExternalSessionId
+ BattlePlace.WebApi.Types: [matchSession_externalSessionId] :: MatchSession -> !ExternalSessionId
+ BattlePlace.WebApi.Types: instance Data.Aeson.Types.FromJSON.FromJSON BattlePlace.WebApi.Types.ExternalSessionId
+ BattlePlace.WebApi.Types: instance Data.Aeson.Types.ToJSON.ToJSON BattlePlace.WebApi.Types.ExternalSessionId
+ BattlePlace.WebApi.Types: instance Data.Hashable.Class.Hashable BattlePlace.WebApi.Types.ExternalSessionId
+ BattlePlace.WebApi.Types: instance GHC.Classes.Eq BattlePlace.WebApi.Types.ExternalSessionId
+ BattlePlace.WebApi.Types: newtype ExternalSessionId
- BattlePlace.WebApi.Types: MatchServerSession :: !(InternalToken ServerSessionToken) -> !(Vector MatchTeam) -> !MatchTag -> !ServerTag -> MatchServerSession
+ BattlePlace.WebApi.Types: MatchServerSession :: !ExternalSessionId -> !(InternalToken ServerSessionToken) -> !(Vector MatchTeam) -> !MatchTag -> !ServerTag -> MatchServerSession
- BattlePlace.WebApi.Types: MatchSession :: !(InternalToken SessionToken) -> !(Vector MatchTeam) -> {-# UNPACK #-} !Int -> {-# UNPACK #-} !Int -> !(Maybe MatchServer) -> MatchSession
+ BattlePlace.WebApi.Types: MatchSession :: !ExternalSessionId -> !(InternalToken SessionToken) -> !(Vector MatchTeam) -> {-# UNPACK #-} !Int -> {-# UNPACK #-} !Int -> !(Maybe MatchServer) -> MatchSession
Files
- BattlePlace/WebApi/Types.hs +8/−2
- battleplace.cabal +1/−1
BattlePlace/WebApi/Types.hs view
@@ -28,6 +28,7 @@ , SessionToken(..) , SessionId(..) , ServerSessionToken(..)+ , ExternalSessionId(..) , MatchSession(..) , MatchServerSession(..) , MatchTeam(..)@@ -228,9 +229,13 @@ toJSON = J.genericToJSON jsonOptions toEncoding = J.genericToEncoding jsonOptions +-- | External session token for exposure to clients and servers.+newtype ExternalSessionId = ExternalSessionId T.Text deriving (Eq, Hashable, J.FromJSON, J.ToJSON)+ -- | Match session. data MatchSession = MatchSession- { matchSession_sessionToken :: !(InternalToken SessionToken)+ { matchSession_externalSessionId :: !ExternalSessionId+ , matchSession_sessionToken :: !(InternalToken SessionToken) , matchSession_teams :: !(V.Vector MatchTeam) , matchSession_teamIndex :: {-# UNPACK #-} !Int , matchSession_mateIndex :: {-# UNPACK #-} !Int@@ -244,7 +249,8 @@ -- | Match server session. data MatchServerSession = MatchServerSession- { matchServerSession_serverSessionToken :: !(InternalToken ServerSessionToken)+ { matchServerSession_externalSessionId :: !ExternalSessionId+ , matchServerSession_serverSessionToken :: !(InternalToken ServerSessionToken) , matchServerSession_teams :: !(V.Vector MatchTeam) , matchServerSession_matchTag :: !MatchTag , matchServerSession_serverTag :: !ServerTag
battleplace.cabal view
@@ -1,5 +1,5 @@ name: battleplace-version: 0.1.0.8+version: 0.1.0.9 synopsis: Core definitions for BattlePlace.io service description: Core definitions for BattlePlace.io service license: MIT