blob: 4549ca5a46d5c31e4cfe38366dee81fed28d1bc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{-# LANGUAGE DeriveGeneric #-}
module Model.Json.Income
( Income(..)
) where
import GHC.Generics
import Data.Aeson
import Data.Time.Clock (UTCTime)
data Income = Income
{ creation :: UTCTime
, amount :: Int
} deriving (Show, Generic)
instance FromJSON Income
instance ToJSON Income
|