blob: d15e85370627d1c79c8b14229220852310abb383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module Model.Position
( positionEncoder
) where
import Json.Encode exposing (..)
positionEncoder : (Int, Int) -> Value
positionEncoder (x, y) =
object
[ ("x", int x)
, ("y", int y)
]
|