blob: 11d84e9b638aa7a9d945d69ed8826890a1a36bba (
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
|