blob: a10ce39160a6cb4f9081bbaffe76d615c48519ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{-# LANGUAGE DeriveGeneric #-}
module Model.Json.EditCategory
( EditCategory(..)
) where
import Data.Aeson
import Data.Text (Text)
import GHC.Generics
import Model.Category (CategoryId)
data EditCategory = EditCategory
{ id :: CategoryId
, name :: Text
, color :: Text
} deriving (Show, Generic)
instance FromJSON EditCategory
|