blaze-html-contrib-0.2.2: Some contributions to add handy things to blaze html.

Safe HaskellSafe-Infered

Data.Pagination

Description

Data pagination.

Synopsis

Documentation

data Pagination Source

A pagination object, holds information about the name, total, per page, current page, etc.

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.