blob: a2ceca05f5cca9e52696bb9793ecc4959af6f744 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module Common.Model.EditCategoryForm
( EditCategoryForm(..)
) where
import Data.Aeson (FromJSON, ToJSON)
import Data.Text (Text)
import GHC.Generics (Generic)
import Common.Model.Category (CategoryId)
data EditCategoryForm = EditCategoryForm
{ _editCategoryForm_id :: CategoryId
, _editCategoryForm_name :: Text
, _editCategoryForm_color :: Text
} deriving (Show, Generic)
instance FromJSON EditCategoryForm
instance ToJSON EditCategoryForm
|