packages feed

ngx-export-distribution 0.6.1.0 → 0.6.1.1

raw patch · 4 files changed

+14/−15 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Changelog.md view
@@ -1,3 +1,8 @@+### 0.6.1.1++- Minor stylistic improvements in module+  *NgxExport.Distribution.Compat.Verbosity*.+ ### 0.6.1.0  - Added a new module *NgxExport.Distribution.Compat.Verbosity* to support
NgxExport/Distribution.hs view
@@ -461,17 +461,15 @@ ngxExportHooks =     simpleUserHooks { hookedPrograms = [nhmTool]                     , confHook = \desc flags -> do-                        let cFlags = configVerbosity flags-                            verbosity = toVerbosity $-                                extractVerbosityFlags cFlags+                        let verbosity = toVerbosity $+                                extractVerbosityFlags $ configVerbosity flags                             pdb = configPrograms flags                         _ <- requireProgram verbosity nhmTool pdb >>=                                  requireProgram verbosity patchelf . snd                         confHook simpleUserHooks desc flags                     , buildHook = \desc lbi _ flags -> do-                        let bFlags = buildVerbosity flags-                            verbosity = toVerbosity $-                                extractVerbosityFlags bFlags+                        let verbosity = toVerbosity $+                                extractVerbosityFlags $ buildVerbosity flags                         buildSharedLib verbosity desc lbi flags >>= \lib ->                             patchAndCollectDependentLibs verbosity lib desc lbi                     }
NgxExport/Distribution/Compat/Verbosity.hs view
@@ -28,18 +28,14 @@  #if MIN_VERSION_Cabal(3,18,0) #define VERBOSITY_FLAGS VerbosityFlags-#define VERBOSITY_HANDLES VerbosityHandles #define TO_VERBOSITY_FLAGS(verbosity) (verbosityFlags (verbosity))-#define TO_VERBOSITY(flags, handles) (Verbosity (flags) (handles))-import Distribution.Verbosity (Verbosity (..)+#define TO_VERBOSITY(flags, handles) (mkVerbosity (handles) (flags))+import Distribution.Verbosity (Verbosity, mkVerbosity                               ,VerbosityFlags, verbosityFlags, normal-                              ,VerbosityHandles, defaultVerbosityHandles+                              ,defaultVerbosityHandles                               )-defaultVerbosityHandles_ :: VERBOSITY_HANDLES-defaultVerbosityHandles_ = defaultVerbosityHandles #else #define VERBOSITY_FLAGS Verbosity-#define VERBOSITY_HANDLES () #define TO_VERBOSITY_FLAGS(verbosity) (verbosity) #define TO_VERBOSITY(flags, handles) (flags) import Distribution.Verbosity (Verbosity, normal)@@ -57,7 +53,7 @@ -- -- With Cabal /3.16/ and older it simply returns the passed argument. toVerbosity :: VERBOSITY_FLAGS -> Verbosity-toVerbosity flags = TO_VERBOSITY(flags, defaultVerbosityHandles_)+toVerbosity flags = TO_VERBOSITY(flags, defaultVerbosityHandles) {-# ANN toVerbosity "HLint: ignore Redundant bracket" #-}  -- | Extracts /verbosity flags/ from the passed flag.
ngx-export-distribution.cabal view
@@ -1,5 +1,5 @@ name:                       ngx-export-distribution-version:                    0.6.1.0+version:                    0.6.1.1 synopsis:                   Build custom libraries for Nginx Haskell module description:                Build custom libraries for         <https://github.com/lyokha/nginx-haskell-module Nginx Haskell module>.