Copyright | (c) Alexey Radkov 2023 |
---|---|
License | BSD-style |
Maintainer | alexey.radkov@gmail.com |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type NgxExportService = Bool -> IO ByteString
Exported types
type NgxExportService Source #
= Bool | First-run flag |
-> IO ByteString |
Allows writing fancier declarations of services.
For example, service signalUpconf in
type Upconf = [Text] signalUpconf :: Upconf ->Bool
->IO
ByteString
signalUpconf =voidHandler'
. mapConcurrently_ getUrlngxExportSimpleServiceTyped
'signalUpconf ''Upconf $PersistentService
Nothing
can be rewritten in a fancier way:
signalUpconf :: Upconf -> NgxExportService
signalUpconf = voidHandler'
. mapConcurrently_ getUrl
Since: 1.2.2