Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ezemtsov committed Jul 2, 2019
1 parent dacd3d4 commit 6878a7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/TypesGameInput.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import qualified TypesGame as TG

messageOptions = defaultOptions
{ sumEncoding = TaggedObject
{ tagFieldName = "method"
{ tagFieldName = "method"
, contentsFieldName = "resource" }
}

Expand Down
4 changes: 2 additions & 2 deletions src/TypesGameOutput.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ data Message =
instance ToJSON Message where
toJSON = genericToJSON defaultOptions
{ sumEncoding = TaggedObject
{ tagFieldName = "message"
{ tagFieldName = "message"
, contentsFieldName = "data" }
}

data Data =
Player TG.Player
| Cell TG.Cell
| SessionId TG.SessionId
| History { moves :: [TG.Cell]
| History { moves :: [TG.Cell]
, players :: [TG.Player] }
deriving (Generic, Show)
instance ToJSON Data where
Expand Down

0 comments on commit 6878a7c

Please sign in to comment.