ngx-export-tools 1.2.2 → 1.2.2.1
raw patch · 5 files changed
+11/−10 lines, 5 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- NgxExport.Tools.SimpleService: type NgxExportService = Bool -> IO ByteString
+ NgxExport.Tools.SimpleService: type NgxExportService = -- | First-run flag Bool -> IO ByteString
- NgxExport.Tools.SplitService: deferredService :: (a -> IO ByteString) -> a -> Bool -> IO ByteString
+ NgxExport.Tools.SplitService: deferredService :: (a -> IO ByteString) -> a -> NgxExportService
- NgxExport.Tools.SplitService: ignitionService :: (a -> IO ByteString) -> a -> Bool -> IO ByteString
+ NgxExport.Tools.SplitService: ignitionService :: (a -> IO ByteString) -> a -> NgxExportService
- NgxExport.Tools.SplitService: splitService :: (a -> IO ByteString) -> (a -> IO ByteString) -> a -> Bool -> IO ByteString
+ NgxExport.Tools.SplitService: splitService :: (a -> IO ByteString) -> (a -> IO ByteString) -> a -> NgxExportService
- NgxExport.Tools.SplitService: type NgxExportService = Bool -> IO ByteString
+ NgxExport.Tools.SplitService: type NgxExportService = -- | First-run flag Bool -> IO ByteString
- NgxExport.Tools.Types: type NgxExportService = Bool -> IO ByteString
+ NgxExport.Tools.Types: type NgxExportService = -- | First-run flag Bool -> IO ByteString
Files
- Changelog.md +4/−0
- NgxExport/Tools.hs +0/−1
- NgxExport/Tools/SplitService.hs +3/−6
- NgxExport/Tools/Types.hs +2/−1
- ngx-export-tools.cabal +2/−2
Changelog.md view
@@ -1,3 +1,7 @@+### 1.2.2.1++- Use *NgxExportService* in declarations of split services.+ ### 1.2.2 - Added a new module *NgxExport.Tools.Types* which exports a new type
NgxExport/Tools.hs view
@@ -15,7 +15,6 @@ module NgxExport.Tools (- -- * Contents -- *** Combinators of effectful actions (including split services) module NgxExport.Tools.Combinators -- *** Reading custom types from /ByteStrings/
NgxExport/Tools/SplitService.hs view
@@ -40,8 +40,7 @@ splitService :: (a -> IO L.ByteString) -- ^ Ignition service -> (a -> IO L.ByteString) -- ^ Deferred service -> a -- ^ Configuration- -> Bool -- ^ First-run flag- -> IO L.ByteString+ -> NgxExportService splitService is ds c fstRun | fstRun = is c | otherwise = ds c@@ -49,8 +48,7 @@ -- | Sets an action as an ignition service. ignitionService :: (a -> IO L.ByteString) -- ^ Ignition service -> a -- ^ Configuration- -> Bool -- ^ First-run flag- -> IO L.ByteString+ -> NgxExportService ignitionService is = splitService is $ const $ return L.empty -- | Sets an action as a deferred service.@@ -60,7 +58,6 @@ -- process, and therefore can be used as a cleanup handler. deferredService :: (a -> IO L.ByteString) -- ^ Deferred service -> a -- ^ Configuration- -> Bool -- ^ First-run flag- -> IO L.ByteString+ -> NgxExportService deferredService = splitService $ const $ return L.empty
NgxExport/Tools/Types.hs view
@@ -40,5 +40,6 @@ -- @ -- -- @since 1.2.2-type NgxExportService = Bool -> IO L.ByteString+type NgxExportService = Bool -- ^ First-run flag+ -> IO L.ByteString
ngx-export-tools.cabal view
@@ -1,12 +1,12 @@ name: ngx-export-tools-version: 1.2.2+version: 1.2.2.1 synopsis: Extra tools for Nginx haskell module description: Extra tools for <https://github.com/lyokha/nginx-haskell-module Nginx haskell module>. homepage: https://github.com/lyokha/nginx-haskell-module license: BSD3 license-file: LICENSE-extra-source-files: Changelog.md+extra-doc-files: Changelog.md author: Alexey Radkov <alexey.radkov@gmail.com> maintainer: Alexey Radkov <alexey.radkov@gmail.com> stability: stable