Copyright | (c) Anton Gushcha 2016 |
---|---|
License | MIT |
Maintainer | ncrashed@gmail.com |
Stability | experimental |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
Servant.API.Auth.Token.Pagination
Contents
Description
Synopsis
- type PageParam = QueryParam "page" Page
- type Page = Word
- type PageSizeParam = QueryParam "size" PageSize
- type PageSize = Word
- data PagedList i a = PagedList {
- pagedListItems :: ![WithId i a]
- pagedListPages :: !Word
API types
type PageParam = QueryParam "page" Page Source #
Query parameter that carries pagination page number
type PageSizeParam = QueryParam "size" PageSize Source #
Query parameter that carries pagination page size value
Helpers
Collection of a
with attached ids of type i
and additional
page info.
Constructors
PagedList | |
Fields
|
Instances
Orphan instances
ToParam PageSizeParam Source # | |
Methods toParam :: Proxy PageSizeParam -> DocQueryParam # | |
ToParam PageParam Source # | |
Methods toParam :: Proxy PageParam -> DocQueryParam # |