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

module Model.Json.Translation
  ( Translation(..)
  ) where

import GHC.Generics

import Data.Aeson
import Data.Text

import Model.Json.MessagePart

data Translation = Translation
  { key :: Text
  , message :: [MessagePart]
  } deriving (Show, Generic)

instance FromJSON Translation
instance ToJSON Translation