aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/Init.hs
blob: 5ef1535cb751f7ff1c08dcdaa012d694a66bacc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Common.Model.Init
  ( Init(..)
  ) where

import           Data.Aeson            (FromJSON, ToJSON)
import           GHC.Generics          (Generic)

import           Common.Model.Currency (Currency)
import           Common.Model.User     (User, UserId)

data Init = Init
  { _init_users       :: [User]
  , _init_currentUser :: UserId
  , _init_currency    :: Currency
  } deriving (Show, Generic)

instance FromJSON Init
instance ToJSON Init