Add needed JSON instances for PrivateState

This commit is contained in:
Tissevert 2019-10-17 12:13:15 +02:00
parent 5cccd05290
commit 0c2974b055

View file

@ -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