From 889df8caf04de5f10a9e623bab3e502e9573159d Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 3 Sep 2015 23:32:39 +0200 Subject: Give the payments count to the client --- src/server/Model/Json/Number.hs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/server/Model/Json/Number.hs (limited to 'src/server/Model/Json') diff --git a/src/server/Model/Json/Number.hs b/src/server/Model/Json/Number.hs new file mode 100644 index 0000000..52c9da8 --- /dev/null +++ b/src/server/Model/Json/Number.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE DeriveGeneric #-} + +module Model.Json.Number + ( Number(..) + ) where + +import Data.Aeson +import GHC.Generics + +data Number = Number + { number :: Int + } deriving (Show, Generic) + +instance FromJSON Number +instance ToJSON Number -- cgit v1.2.3