aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/IncomesAndCount.hs
blob: 43651804602ba6c4ed3958d6d752a6236f90bdc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Common.Model.IncomesAndCount
  ( IncomesAndCount(..)
  ) where

import           Data.Aeson          (FromJSON, ToJSON)
import           GHC.Generics        (Generic)

import           Common.Model.Income (Income)

data IncomesAndCount = IncomesAndCount
  { _incomesAndCount_incomes :: [Income]
  , _incomesAndCount_count   :: Int
  } deriving (Show, Generic)

instance FromJSON IncomesAndCount
instance ToJSON IncomesAndCount