snap-app-0.3.0: Simple modules for writing apps with Snap, abstracted from hpaste.

Safe HaskellNone

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.

addCurrentPNData :: URI -> Pagination -> PaginationSource

Add the current page of the pagination from the current URI.