aboutsummaryrefslogtreecommitdiff
path: root/src/common/Model/Currency.hs
blob: 7c12545d4e5a316fcaf74faea92c4c0055d0fc28 (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