{-# LANGUAGE DeriveGeneric #-} module Model.Json.AddIncome ( AddIncome(..) ) where import GHC.Generics import Data.Aeson import Data.Time.Calendar (Day) data AddIncome = AddIncome { day :: Day , amount :: Int } deriving (Show, Generic) instance FromJSON AddIncome