aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/CreateIncome.hs
blob: 4ee3a501b103f978522eb83d20763b2b28e9f566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE DeriveGeneric #-}

module Common.Model.CreateIncome
  ( CreateIncome(..)
  ) where

import Data.Aeson (FromJSON)
import Data.Time.Calendar (Day)
import GHC.Generics (Generic)

data CreateIncome = CreateIncome
  { _createIncome_date :: Day
  , _createIncome_amount :: Int
  } deriving (Show, Generic)

instance FromJSON CreateIncome