blob: 867b4068b77ce7836206de27dc701ebe1eb32b7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{-# LANGUAGE DeriveGeneric #-}
module Common.Model.EditIncome
( EditIncome(..)
) where
import Data.Aeson (FromJSON)
import Data.Time.Calendar (Day)
import GHC.Generics (Generic)
import Common.Model.Income (IncomeId)
data EditIncome = EditIncome
{ _editIncome_id :: IncomeId
, _editIncome_date :: Day
, _editIncome_amount :: Int
} deriving (Show, Generic)
instance FromJSON EditIncome
|