From 0075abf51db5d1b54117525d7a7f9b06e31c9484 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Tue, 17 Mar 2015 21:26:40 +0100 Subject: Adding an edition mode for a timer --- src/Model/Position.elm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Model/Position.elm (limited to 'src/Model/Position.elm') diff --git a/src/Model/Position.elm b/src/Model/Position.elm new file mode 100644 index 0000000..b73a3d9 --- /dev/null +++ b/src/Model/Position.elm @@ -0,0 +1,12 @@ +module Model.Position + ( positionEncoder + ) where + +import Json.Encode (..) + +positionEncoder : (Int, Int) -> Value +positionEncoder (x, y) = + object + [ ("x", int x) + , ("y", int y) + ] -- cgit v1.2.3