Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Polysemy.Account.Api.NativeContext
Description
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
.
Constructors
ServerReady |
Instances
Show ServerReady Source # | |
Defined in Polysemy.Account.Api.NativeContext Methods showsPrec :: Int -> ServerReady -> ShowS # show :: ServerReady -> String # showList :: [ServerReady] -> ShowS # | |
Eq ServerReady Source # | |
Defined in Polysemy.Account.Api.NativeContext |
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 #