ngx-export-tools 0.4.8.0 → 0.4.9.0
raw patch · 3 files changed
+13/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ NgxExport.Tools: skipRPtr :: ByteString -> ByteString
Files
- Changelog.md +4/−0
- NgxExport/Tools.hs +6/−0
- ngx-export-tools.cabal +3/−2
Changelog.md view
@@ -1,3 +1,7 @@+### 0.4.9.0++- Exposed function *skipRPtr* which can be useful in many contexts.+ ### 0.4.8.0 - Correct implementation of *Eq* and *Ord* instances for *TimeInterval*.
NgxExport/Tools.hs view
@@ -36,6 +36,7 @@ ,readFromByteStringAsJSON ,readFromByteStringWithRPtr ,readFromByteStringWithRPtrAsJSON+ ,skipRPtr -- * Exporters of simple services -- $simpleServices ,ServiceMode (..)@@ -359,6 +360,11 @@ readFromByteStringWithRPtrAsJSON = ngxRequestPtr &&& readFromByteStringAsJSON . skipRPtr +-- | Skips the number of bytes equal to the size of a pointer from the beginning+-- of a 'ByteString'.+--+-- This can be useful to drop a pointer to the Nginx request object passed at+-- the beginning of a handler's argument. skipRPtr :: ByteString -> ByteString skipRPtr = B.drop $ sizeOf (undefined :: Word)
ngx-export-tools.cabal view
@@ -1,5 +1,5 @@ name: ngx-export-tools-version: 0.4.8.0+version: 0.4.9.0 synopsis: Extra tools for Nginx haskell module description: Extra tools for <http://github.com/lyokha/nginx-haskell-module Nginx haskell module>.@@ -13,9 +13,10 @@ copyright: 2018-2019 Alexey Radkov category: Network build-type: Simple-cabal-version: >= 1.8+cabal-version: 1.20 library+ default-language: Haskell2010 build-depends: base >= 4.8 && < 5 , template-haskell >= 2.11.0.0 , bytestring >= 0.10.0.0