aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/CreateCategory.hs
blob: bfe24c55d1bbc2de1a3e892c8a21c87fa92173d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE DeriveGeneric #-}

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