Add needed JSON instances for PrivateState
This commit is contained in:
parent
5cccd05290
commit
0c2974b055
1 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,10 @@ data PrivateState = PrivateState {
|
|||
, deck :: [Hanafuda.Card]
|
||||
} deriving Generic
|
||||
|
||||
instance FromJSON PrivateState
|
||||
instance ToJSON PrivateState where
|
||||
toEncoding = genericToEncoding defaultOptions
|
||||
|
||||
data PublicPlayer = PublicPlayer {
|
||||
meld :: Hanafuda.Pack
|
||||
, yakus :: KoiKoi.Score
|
||||
|
|
Loading…
Reference in a new issue