aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/Currency.hs
blob: 6d74ea7c183c11a938512037754d8c02376c0b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE DeriveGeneric #-}

module Common.Model.Currency
  ( Currency(..)
  ) where

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

newtype Currency = Currency Text deriving (Show, Generic)

instance FromJSON Currency
instance ToJSON Currency