Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ServerReady = ServerReady
- runServerSem :: forall (api :: Type) context r a. HasServer api context => HasContextEntry (context .++ DefaultErrorFormatters) ErrorFormatters => Members [Log, Embed IO, Final IO] r => ServerT api (Sem (Stop ServerError ': r)) -> Context context -> (Application -> IO a) -> Sem r a
- runServer :: forall (api :: Type) context r. HasServer api context => HasContextEntry (context .++ DefaultErrorFormatters) ErrorFormatters => Members [Sync ServerReady, Log, Interrupt, Final IO] r => ServerT api (Sem (Stop ServerError ': r)) -> Context context -> Port -> Sem r ()
Documentation
data ServerReady Source #
A dummy value used to indicate that the server has fully started up, using Sync
.
Instances
Show ServerReady Source # | |
Defined in Polysemy.Account.Api.NativeContext showsPrec :: Int -> ServerReady -> ShowS # show :: ServerReady -> String # showList :: [ServerReady] -> ShowS # | |
Eq ServerReady Source # | |
Defined in Polysemy.Account.Api.NativeContext (==) :: ServerReady -> ServerReady -> Bool # (/=) :: ServerReady -> ServerReady -> Bool # |
runServerSem :: forall (api :: Type) context r a. HasServer api context => HasContextEntry (context .++ DefaultErrorFormatters) ErrorFormatters => Members [Log, Embed IO, Final IO] r => ServerT api (Sem (Stop ServerError ': r)) -> Context context -> (Application -> IO a) -> Sem r a Source #
runServer :: forall (api :: Type) context r. HasServer api context => HasContextEntry (context .++ DefaultErrorFormatters) ErrorFormatters => Members [Sync ServerReady, Log, Interrupt, Final IO] r => ServerT api (Sem (Stop ServerError ': r)) -> Context context -> Port -> Sem r () Source #