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]
|
, deck :: [Hanafuda.Card]
|
||||||
} deriving Generic
|
} deriving Generic
|
||||||
|
|
||||||
|
instance FromJSON PrivateState
|
||||||
|
instance ToJSON PrivateState where
|
||||||
|
toEncoding = genericToEncoding defaultOptions
|
||||||
|
|
||||||
data PublicPlayer = PublicPlayer {
|
data PublicPlayer = PublicPlayer {
|
||||||
meld :: Hanafuda.Pack
|
meld :: Hanafuda.Pack
|
||||||
, yakus :: KoiKoi.Score
|
, yakus :: KoiKoi.Score
|
||||||
|
|
Loading…
Reference in a new issue