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

import           Data.Aeson            (FromJSON)
import           Data.Text             (Text)
import           GHC.Generics          (Generic)

import           Common.Model.Category (CategoryId)

data EditCategory = EditCategory
  { _editCategory_id    :: CategoryId
  , _editCategory_name  :: Text
  , _editCategory_color :: Text
  } deriving (Show, Generic)

instance FromJSON EditCategory