aboutsummaryrefslogtreecommitdiff
path: root/src/server/Model/Json/Number.hs
blob: 52c9da895453e1cd918fc55b8677ef170bd832dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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