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

module Model.Json.Translations
  ( Translations(..)
  ) where

import Data.Aeson
import GHC.Generics

import Model.Json.Translation

data Translations = Translations
  { translations :: [Translation]
  } deriving (Show, Generic)

instance FromJSON Translations
instance ToJSON Translations