packages feed

servant-auth-client 0.3.1.0 → 0.3.2.0

raw patch · 2 files changed

+18/−12 lines, 2 filesdep ~QuickCheckdep ~servantdep ~servant-client-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: QuickCheck, servant, servant-client-core

API changes (from Hackage documentation)

Files

servant-auth-client.cabal view
@@ -1,27 +1,27 @@ name:           servant-auth-client-version:        0.3.1.0+version:        0.3.2.0 synopsis:       servant-client/servant-auth compatibility description:    This package provides instances that allow generating clients from                 <https://hackage.haskell.org/package/servant servant>                 APIs that use                 <https://hackage.haskell.org/package/servant-auth servant-auth's> @Auth@ combinator.                 .-                For a quick overview of the usage, see the <http://github.com/plow-technologies/servant-auth#readme README>.+                For a quick overview of the usage, see the <http://github.com/haskell-servant/servant-auth#readme README>. category:       Web, Servant, Authentication-homepage:       http://github.com/plow-technologies/servant-auth#readme-bug-reports:    https://github.com/plow-technologies/servant-auth/issues+homepage:       http://github.com/haskell-servant/servant-auth#readme+bug-reports:    https://github.com/haskell-servant/servant-auth/issues author:         Julian K. Arni maintainer:     jkarni@gmail.com copyright:      (c) Julian K. Arni license:        BSD3 license-file:   LICENSE-tested-with:    GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.1+tested-with:    GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2 build-type:     Simple cabal-version:  >= 1.10  source-repository head   type: git-  location: https://github.com/plow-technologies/servant-auth+  location: https://github.com/haskell-servant/servant-auth  flag servant-client-core   description: Use servant-client-core@@ -38,11 +38,11 @@     , text     , bytestring     , servant-auth        == 0.3.*-    , servant             >= 0.7  && < 0.13+    , servant             >= 0.7  && < 0.14   if flag(servant-client-core)     cpp-options: -DHAS_CLIENT_CORE=1     build-depends:-      servant-client-core >= 0.12 && < 0.13,+      servant-client-core >= 0.12 && < 0.14,       containers   else     build-depends:@@ -73,7 +73,7 @@   -- test dependencies   build-depends:       hspec > 2 && < 3-    , QuickCheck >= 2.8 && < 2.11+    , QuickCheck >= 2.8 && < 2.12     , aeson     , bytestring     , http-client
test/Servant/Auth/ClientSpec.hs view
@@ -17,7 +17,9 @@ import           Servant import           Servant.Client           (BaseUrl (..), Scheme (Http),                                            ServantError (FailureResponse),-#if MIN_VERSION_servant_client(0,12,0)+#if MIN_VERSION_servant_client(0,13,0)+                                           GenResponse(..),+#elif MIN_VERSION_servant_client(0,12,0)                                            Response(..), #endif                                            client)@@ -25,7 +27,9 @@ import           Test.Hspec import           Test.QuickCheck -#if MIN_VERSION_servant(0,9,0)+#if MIN_VERSION_servant_client(0,13,0)+import Servant.Client (mkClientEnv, runClientM)+#elif MIN_VERSION_servant_client(0,9,0) import Servant.Client (ClientEnv (..), runClientM) #else import Control.Monad.Trans.Except (runExceptT)@@ -75,7 +79,9 @@   getIntClient :: Token -> Manager -> BaseUrl -> IO (Either ServantError Int)-#if MIN_VERSION_servant(0,9,0)+#if MIN_VERSION_servant(0,13,0)+getIntClient tok m burl = runClientM (client api tok) (mkClientEnv m burl)+#elif MIN_VERSION_servant(0,9,0) getIntClient tok m burl = runClientM (client api tok) (ClientEnv m burl) #else getIntClient tok m burl = runExceptT $ client api tok m burl