From c015db01e2acee9d1fc83cd6a762d0a3e629b353 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 1 Nov 2015 11:58:42 +0100 Subject: Use in client the real currency set in config.txt --- src/server/Model/Json/Config.hs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/server/Model/Json/Config.hs (limited to 'src/server/Model') diff --git a/src/server/Model/Json/Config.hs b/src/server/Model/Json/Config.hs new file mode 100644 index 0000000..422ecee --- /dev/null +++ b/src/server/Model/Json/Config.hs @@ -0,0 +1,17 @@ +{-# LANGUAGE DeriveGeneric #-} + +module Model.Json.Config + ( Config(..) + ) where + +import GHC.Generics + +import Data.Aeson +import Data.Text + +data Config = Config + { currency :: Text + } deriving (Show, Generic) + +instance FromJSON Config +instance ToJSON Config -- cgit v1.2.3