aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/CreateCategory.hs
blob: 51bd2a0bc2739419133e746bcf8f2113013cfe7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Common.Model.CreateCategory
  ( CreateCategory(..)
  ) where

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

data CreateCategory = CreateCategory
  { _createCategory_name  :: Text
  , _createCategory_color :: Text
  } deriving (Show, Generic)

instance FromJSON CreateCategory