aboutsummaryrefslogtreecommitdiff
path: root/server/src/Conf.hs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/Conf.hs')
-rw-r--r--server/src/Conf.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/Conf.hs b/server/src/Conf.hs
index 2422a93..ca19c8d 100644
--- a/server/src/Conf.hs
+++ b/server/src/Conf.hs
@@ -17,6 +17,7 @@ data Conf = Conf
, currency :: Currency
, noReplyMail :: Text
, https :: Bool
+ , devMode :: Bool
} deriving Show
get :: FilePath -> IO Conf
@@ -30,7 +31,8 @@ get path = do
Conf.lookup "signInExpiration" conf <*>
fmap Currency (Conf.lookup "currency" conf) <*>
Conf.lookup "noReplyMail" conf <*>
- Conf.lookup "https" conf
+ Conf.lookup "https" conf <*>
+ Conf.lookup "devMode" conf
)
case conf of
Left msg -> error (T.unpack msg)