diff options
| author | LLLL Colonq <llll@colonq> | 2025-05-30 02:55:35 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-05-30 02:55:55 -0400 |
| commit | f95d9bbde51ee26468177b2d34c669d9689fbea4 (patch) | |
| tree | 9790f7a39c70e1cc2c6a0d418ace38dcf7a1aa51 /fig-web/src/Fig/Web/Public.hs | |
| parent | bab19289fd0b0f7a26056c4f20b5a0f456c9bf57 (diff) | |
web: Big refactor part 2
Diffstat (limited to 'fig-web/src/Fig/Web/Public.hs')
| -rw-r--r-- | fig-web/src/Fig/Web/Public.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fig-web/src/Fig/Web/Public.hs b/fig-web/src/Fig/Web/Public.hs index cd37d4e..1ff9962 100644 --- a/fig-web/src/Fig/Web/Public.hs +++ b/fig-web/src/Fig/Web/Public.hs @@ -25,14 +25,14 @@ import qualified Fig.Web.Module.Bells as Bells import qualified Fig.Web.Module.User as User import qualified Fig.Web.Module.Shader as Shader -allBusEvents :: ModuleArgs -> BusEventHandlers +allBusEvents :: PublicModuleArgs -> BusEventHandlers allBusEvents args = busEvents . mconcat $ fmap ($ args) [ Gizmo.publicBusEvents , Circle.publicBusEvents ] -server :: Config -> (Text, Text) -> IO () -server cfg busAddr = do +server :: PublicOptions -> Config -> (Text, Text) -> IO () +server options cfg busAddr = do log $ "Web server running on port " <> tshow cfg.port log "Connecting to database..." db <- DB.connect cfg @@ -51,7 +51,7 @@ server cfg busAddr = do ) (pure ()) -app :: ModuleArgs -> IO Wai.Application +app :: PublicModuleArgs -> IO Wai.Application app args = do log "Connected! Server active." Sc.scottyApp do |
