ngx-export-tools-1.2.4: Extra tools for Nginx Haskell module
Copyright(c) Alexey Radkov 2023
LicenseBSD-style
Maintaineralexey.radkov@gmail.com
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

NgxExport.Tools.Types

Description

 
Synopsis

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 -> IO ByteString
signalUpconf = voidHandler' . mapConcurrently_ getUrl

ngxExportSimpleServiceTyped 'signalUpconf ''Upconf $
    PersistentService Nothing

can be rewritten in a fancier way:

signalUpconf :: Upconf -> NgxExportService
signalUpconf = voidHandler' . mapConcurrently_ getUrl

Since: 1.2.2