From ef0713cbd90d6b84da7ea67e6dfc1fe5ab5bff86 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Sun, 7 Sep 2025 13:43:15 +0000 Subject: Adds generic app launcher helper function --- hsm-web/Main.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hsm-web') diff --git a/hsm-web/Main.hs b/hsm-web/Main.hs index 2661370..2b6c44b 100644 --- a/hsm-web/Main.hs +++ b/hsm-web/Main.hs @@ -2,7 +2,7 @@ import Effectful (runEff) import Hsm.Cam (runCam) -import Hsm.Core.Options (getOptions) +import Hsm.Core.App (runApp) import Hsm.Log (Severity(Info), runLogsOpt) import Hsm.Log.Options (makeLoggerOptionParser) import Hsm.Web (runServer, runWeb) @@ -16,4 +16,4 @@ type Loggers = '[ "cam", "libcamera", "scotty", "web"] $(makeLoggerOptionParser @Loggers "Options" "parser" 'Info) main :: IO () -main = getOptions parser "Launch HsMouse Web Server" >>= \opts -> runEff . runLogsOpt @Options @Loggers opts . runCam . runWeb $ runServer +main = runApp parser "Launch HsMouse Web Server" $ \opts -> runLogsOpt @Options @Loggers opts . runCam . runWeb $ runServer -- cgit v1.2.1