packages feed

biscuit-servant 0.2.0.1 → 0.2.1.0

raw patch · 4 files changed

+10/−10 lines, 4 filesdep ~biscuit-haskelldep ~servant-serverPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: biscuit-haskell, servant-server

API changes (from Hackage documentation)

- Auth.Biscuit.Servant: WithAuthorizer :: ReaderT (Biscuit OpenOrSealed Verified) m a -> m Authorizer -> WithAuthorizer m a
+ Auth.Biscuit.Servant: WithAuthorizer :: ReaderT (Biscuit OpenOrSealed Verified) m a -> m Authorizer -> WithAuthorizer (m :: Type -> Type) (a :: Type)
- Auth.Biscuit.Servant: [authorizer_] :: WithAuthorizer m a -> m Authorizer
+ Auth.Biscuit.Servant: [authorizer_] :: WithAuthorizer (m :: Type -> Type) (a :: Type) -> m Authorizer
- Auth.Biscuit.Servant: [handler_] :: WithAuthorizer m a -> ReaderT (Biscuit OpenOrSealed Verified) m a
+ Auth.Biscuit.Servant: [handler_] :: WithAuthorizer (m :: Type -> Type) (a :: Type) -> ReaderT (Biscuit OpenOrSealed Verified) m a
- Auth.Biscuit.Servant: data WithAuthorizer m a
+ Auth.Biscuit.Servant: data WithAuthorizer (m :: Type -> Type) (a :: Type)

Files

README.md view
@@ -1,4 +1,4 @@-<img src="https://raw.githubusercontent.com/divarvel/biscuit-haskell/main/assets/biscuit-logo.png" align=right>+<img src="https://raw.githubusercontent.com/biscuit-auth/biscuit-haskell/main/assets/biscuit-logo.png" align=right>  # biscuit-servant 🤖 [![Hackage][hackage]][hackage-url] 
biscuit-servant.cabal view
@@ -1,12 +1,12 @@ cabal-version: 2.0  name:           biscuit-servant-version:        0.2.0.1+version:        0.2.1.0 category:       Security synopsis:       Servant support for the Biscuit security token-description:    Please see the README on GitHub at <https://github.com/divarvel/biscuit-haskell#readme>-homepage:       https://github.com/divarvel/biscuit-haskell#readme-bug-reports:    https://github.com/divarvel/biscuit-haskell/issues+description:    Please see the README on GitHub at <https://github.com/biscuit-auth/biscuit-haskell#readme>+homepage:       https://github.com/biscuit-auth/biscuit-haskell#readme+bug-reports:    https://github.com/biscuit-auth/biscuit-haskell/issues author:         Clément Delafargue maintainer:     clement@delafargue.name copyright:      2021 Clément Delafargue@@ -19,7 +19,7 @@  source-repository head   type: git-  location: https://github.com/divarvel/biscuit-haskell+  location: https://github.com/biscuit-auth/biscuit-haskell  library   exposed-modules:@@ -33,11 +33,11 @@   ghc-options: -Wall   build-depends:     base                 >= 4.7 && <5,-    biscuit-haskell      ^>= 0.2,+    biscuit-haskell      >= 0.2.1.0 && < 0.3,     bytestring           ^>= 0.10,     mtl                  ^>= 2.2,     text                 ^>= 1.2,-    servant-server       ^>= 0.18,+    servant-server       >= 0.18 && < 0.20,     wai                  ^>= 3.2   default-language: Haskell2010 
src/Auth/Biscuit/Servant.hs view
@@ -36,6 +36,7 @@   ) where  import           Auth.Biscuit                     as Biscuit+import           Data.Kind (Type) import           Control.Applicative              (liftA2) import           Control.Monad.Except             (MonadError, throwError) import           Control.Monad.IO.Class           (MonadIO, liftIO)@@ -200,7 +201,7 @@ -- succeeds, the handler is ran. -- The handler itself is given access to the verified biscuit through -- a @ReaderT (Biscuit OpenOrSealed Verified)@.-data WithAuthorizer m a+data WithAuthorizer (m :: Type -> Type) (a :: Type)   = WithAuthorizer   { handler_    :: ReaderT (Biscuit OpenOrSealed Verified) m a   -- ^ the wrapped handler, in a 'ReaderT' to give easy access to the biscuit
test/ClientHelpers.hs view
@@ -2,7 +2,6 @@ {-# LANGUAGE NamedFieldPuns    #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies      #-}-{-# LANGUAGE TypeOperators     #-} module ClientHelpers where  import           Data.Bifunctor           (first)