aboutsummaryrefslogtreecommitdiff
path: root/src/server/Model
diff options
context:
space:
mode:
authorJoris2015-11-01 11:58:42 +0100
committerJoris2015-11-01 11:58:42 +0100
commitc015db01e2acee9d1fc83cd6a762d0a3e629b353 (patch)
tree9e6b8f5fa04a3ce6cca51f5cae4cc8fbf6a0f5ed /src/server/Model
parentd3e045e8034c5473964c0529ffc1e181311842c2 (diff)
Use in client the real currency set in config.txt
Diffstat (limited to 'src/server/Model')
-rw-r--r--src/server/Model/Json/Config.hs17
1 files changed, 17 insertions, 0 deletions
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