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