diff options
author | Joris | 2015-09-06 23:25:44 +0200 |
---|---|---|
committer | Joris | 2015-09-06 23:25:44 +0200 |
commit | 53afb9c96904ab226ccee754419569da16c59871 (patch) | |
tree | 18c2497275d857f99399595d40a4ccc5a65e396a /src/server/Main.hs | |
parent | 2e75a5ac41afd4d6458ad230bd26fd9e73c7bdb9 (diff) |
Setting up the monthly job
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index c3d285e..1c2bc08 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -4,6 +4,9 @@ import Web.Scotty import Network.Wai.Middleware.Static +import Control.Concurrent (forkIO) +import MonthlyPaymentJob (monthlyPaymentJobListener) + import Data.Text (Text) import qualified Data.Text.IO as TIO @@ -19,6 +22,7 @@ import Config main :: IO () main = do + _ <- forkIO monthlyPaymentJobListener eitherConfig <- getConfig "config.txt" case eitherConfig of Left errorMessage -> |