servant-auth-token-api 0.1.1.0 → 0.1.2.0
raw patch · 2 files changed
+3/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Servant.API.Auth.Token: PagedList :: ![WithId i a] -> !Word -> PagedList i a
- Servant.API.Auth.Token: [pagedListItems] :: PagedList i a -> ![WithId i a]
- Servant.API.Auth.Token: [pagedListPages] :: PagedList i a -> !Word
- Servant.API.Auth.Token: data PagedList i a
- Servant.API.Auth.Token: type Page = Word
- Servant.API.Auth.Token: type PageParam = QueryParam "page" Page
- Servant.API.Auth.Token: type PageSize = Word
- Servant.API.Auth.Token: type PageSizeParam = QueryParam "size" PageSize
Files
servant-auth-token-api.cabal view
@@ -1,5 +1,5 @@ name: servant-auth-token-api-version: 0.1.1.0+version: 0.1.2.0 synopsis: Servant based API for token based authorisation description: Please see README.md homepage: https://github.com/ncrashed/servant-auth-token-api#readme
src/Servant/API/Auth/Token.hs view
@@ -64,8 +64,6 @@ , authDeletePerm -- * Swagger helpers , authOperations- -- * Reexports- , module Reexport ) where import Control.Lens@@ -86,7 +84,7 @@ import Data.Text (Text) import qualified Data.Text as T -import Servant.API.Auth.Token.Pagination as Reexport+import Servant.API.Auth.Token.Pagination import Servant.API.Auth.Token.Internal.DeriveJson import Servant.API.Auth.Token.Internal.Schema @@ -533,6 +531,7 @@ toSamples _ = singleSample () #endif +-- | Unlifting compile-time permissions into list of run-time permissions class PermsList (a :: [Symbol]) where unliftPerms :: forall proxy . proxy a -> [Permission]