Safe Haskell | Safe-Infered |
---|
Data pagination.
- data Pagination = Pagination {
- pnTotal :: Integer
- pnPerPage :: Integer
- pnName :: String
- pnCurrentPage :: Integer
- pnShowDesc :: Bool
- pnPageCount :: Pagination -> Integer
- addCurrentPage :: URI -> Pagination -> Pagination
Documentation
data Pagination Source
A pagination object, holds information about the name, total, per page, current page, etc.
Pagination | |
|
pnPageCount :: Pagination -> IntegerSource
Get the page count of the pagination results.
addCurrentPage :: URI -> Pagination -> PaginationSource
Add the current page of the pagination from the current URI.