diff options
author | Joris | 2015-09-03 23:32:39 +0200 |
---|---|---|
committer | Joris | 2015-09-03 23:32:39 +0200 |
commit | 889df8caf04de5f10a9e623bab3e502e9573159d (patch) | |
tree | d8c3dff55ffd38914543213e544c55e346e1f13e /src/server/Model/Json | |
parent | ebd304d97b612d0ac4ea276b1c29ba8ecc0b7998 (diff) |
Give the payments count to the client
Diffstat (limited to 'src/server/Model/Json')
-rw-r--r-- | src/server/Model/Json/Number.hs | 15 |
1 files changed, 15 insertions, 0 deletions
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 |