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

module Model.Json.CreateCategory
  ( CreateCategory(..)
  ) where

import GHC.Generics

import Data.Aeson
import Data.Text (Text)

data CreateCategory = CreateCategory
  { name :: Text
  , color :: Text
  } deriving (Show, Generic)

instance FromJSON CreateCategory