Copyright | (c) Anton Gushcha 2016 |
---|---|
License | MIT |
Maintainer | ncrashed@gmail.com |
Stability | experimental |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
PagedList | |
|