From f2c04ec8d5723b54d16f2657dcb7b8476bb0d1ec Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Tue, 24 Jan 2023 13:54:21 -0600 Subject: [PATCH] Correct types --- package.yaml | 1 + src/Config.hs | 3 ++- zgo-backend.cabal | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.yaml b/package.yaml index 1e68947..087c04e 100644 --- a/package.yaml +++ b/package.yaml @@ -58,6 +58,7 @@ library: - blake3 - memory - ghc-prim + - network executables: zgo-backend-exe: diff --git a/src/Config.hs b/src/Config.hs index 41cda45..9455cca 100644 --- a/src/Config.hs +++ b/src/Config.hs @@ -6,6 +6,7 @@ import qualified Data.ByteString as BS import Data.Configurator import Data.SecureMem import qualified Data.Text as T +import Network.Socket (PortNumber) data Config = Config @@ -22,7 +23,7 @@ data Config = , c_certificate :: String , c_key :: String , c_smtpHost :: String - , c_smtpPort :: Int + , c_smtpPort :: Integer , c_smtpUser :: String , c_smtpPwd :: String } diff --git a/zgo-backend.cabal b/zgo-backend.cabal index f7e0ae2..9e1060e 100644 --- a/zgo-backend.cabal +++ b/zgo-backend.cabal @@ -58,6 +58,7 @@ library , jwt , memory , mongoDB + , network , quickcheck-instances , random , regex-base