packages feed

servant-auth-swagger 0.2.10.2 → 0.2.11.0

raw patch · 3 files changed

+17/−12 lines, 3 filesdep ~QuickCheckdep ~basedep ~servantnew-uploaderPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: QuickCheck, base, servant, servant-auth, servant-swagger

API changes (from Hackage documentation)

- Servant.Auth.Swagger: data Auth (auths :: [Type]) val
+ Servant.Auth.Swagger: data () => Auth (auths :: [Type]) val
- Servant.Auth.Swagger: data BasicAuth
+ Servant.Auth.Swagger: data () => BasicAuth
- Servant.Auth.Swagger: data JWT
+ Servant.Auth.Swagger: data () => JWT

Files

CHANGELOG.md view
@@ -7,6 +7,10 @@  ## [Unreleased] +## [0.2.11.0] - 2024-08-28++- Compatibility with newer dependencies and GHCs.+ ## [0.2.10.1] - 2020-10-06  ### Changed
servant-auth-swagger.cabal view
@@ -1,6 +1,6 @@ cabal-version:  2.2 name:           servant-auth-swagger-version:        0.2.10.2+version:        0.2.11.0 synopsis:       servant-swagger/servant-auth compatibility description:    This package provides instances that allow generating swagger2 schemas from                 <https://hackage.haskell.org/package/servant servant>@@ -16,7 +16,7 @@ copyright:      (c) Julian K. Arni license:        BSD-3-Clause license-file:   LICENSE-tested-with:    GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4+tested-with:    GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4, GHC ==9.10.1 build-type:     Simple extra-source-files:     CHANGELOG.md@@ -31,13 +31,13 @@   default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators   ghc-options: -Wall   build-depends:-      base            >= 4.10    && < 4.19-    , text            >= 1.2.3.0 && < 2.1-    , servant-swagger >= 1.1.5   && < 2+      base            >= 4.14    && < 4.21+    , text            >= 1.2.3.0 && < 2.2+    , servant-swagger >= 1.2.1   && < 2     , swagger2        >= 2.2.2   && < 3-    , servant         >= 0.13    && < 0.21-    , servant-auth    == 0.4.*-    , lens            >= 4.16.1  && < 5.3+    , servant         >= 0.20.2  && < 0.21+    , servant-auth    >= 0.4.2.0 && < 0.5+    , lens            >= 4.16.1  && < 5.4   exposed-modules:       Servant.Auth.Swagger   default-language: Haskell2010@@ -49,7 +49,7 @@       test   default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators   ghc-options: -Wall-  build-tool-depends: hspec-discover:hspec-discover >= 2.5.5 && <2.11+  build-tool-depends: hspec-discover:hspec-discover >= 2.5.5 && <2.12   -- dependencies with bounds inherited from the library stanza   build-depends:       base@@ -63,8 +63,8 @@   -- test dependencies   build-depends:       servant-auth-swagger-    , hspec      >= 2.5.5  && < 2.11-    , QuickCheck >= 2.11.3 && < 2.15+    , hspec      >= 2.5.5  && < 2.12+    , QuickCheck >= 2.11.3 && < 2.16   other-modules:       Servant.Auth.SwaggerSpec   default-language: Haskell2010
src/Servant/Auth/Swagger.hs view
@@ -17,6 +17,7 @@   ) where  import Control.Lens    ((&), (<>~))+import Data.Kind       (Type) import Data.Proxy      (Proxy (Proxy)) import Data.Swagger    (ApiKeyLocation (..), ApiKeyParams (..),                         SecurityRequirement (..), SecurityScheme (..), @@ -66,7 +67,7 @@       type_ = SecuritySchemeApiKey (ApiKeyParams "Authorization" ApiKeyHeader)       desc  = "JSON Web Token-based API key" -class AllHasSecurity (x :: [*]) where+class AllHasSecurity (x :: [Type]) where   securities :: Proxy x -> [(T.Text,SecurityScheme)]  instance {-# OVERLAPPABLE #-} (HasSecurity x, AllHasSecurity xs) => AllHasSecurity (x ': xs) where