diff options
Diffstat (limited to 'hsm-web')
-rw-r--r-- | hsm-web/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |