Safe Haskell | None |
---|---|
Language | Haskell98 |
- type PageNumber = Int
- data Paginate = Paginate {}
- buildPaginateWith :: MonadMetadata m => ([Identifier] -> m [[Identifier]]) -> Pattern -> (PageNumber -> Identifier) -> m Paginate
- paginateEvery :: Int -> [a] -> [[a]]
- paginateRules :: Paginate -> (PageNumber -> Pattern -> Rules ()) -> Rules ()
- paginateContext :: Paginate -> PageNumber -> Context a
Documentation
type PageNumber = Int Source
Data about paginators
:: MonadMetadata m | |
=> ([Identifier] -> m [[Identifier]]) | Group items into pages |
-> Pattern | Select items to paginate |
-> (PageNumber -> Identifier) | Identifiers for the pages |
-> m Paginate |
paginateEvery :: Int -> [a] -> [[a]] Source
paginateRules :: Paginate -> (PageNumber -> Pattern -> Rules ()) -> Rules () Source
paginateContext :: Paginate -> PageNumber -> Context a Source
A default paginate context which provides the following keys: