yesod-paginator-0.2.2.1: A pagination approach for yesod

Safe HaskellSafe-Infered

Yesod.Paginator.Widget

Synopsis

Documentation

getCurrentPage :: GHandler s m IntSource

looks up the "p" GET param and converts it to an Int. returns a default of 1 when conversion fails.

paginationWidgetSource

Arguments

:: Int

current page

-> Int

items per page

-> Int

total number of items

-> GWidget s m () 

A widget showing pagination links. Follows bootstrap principles. Utilizes a "p" GET param but leaves all other GET params intact.