servant-pagination: Type-safe pagination for Servant APIs

[ lgpl, library, web ] [ Propose Tags ]
This version is deprecated.

This module offers opinionated helpers to declare a type-safe and a flexible pagination mechanism for Servant APIs. This design, inspired by Heroku's API, provides a small framework to communicate about a possible pagination feature of an endpoint, enabling a client to consume the API in different fashions (pagination with offset / limit, endless scroll using last referenced resources, ascending and descending ordering, etc.)

Flags

Manual Flags

NameDescriptionDefault
examples

build examples executables

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.4.0, 2.4.1, 2.4.2, 2.5.0, 2.5.1 (info)
Dependencies aeson (>=1.2 && <2), base (>=4 && <5), safe (>=0.3 && <1), servant (>=0.11 && <1), servant-pagination (>=1 && <2), servant-server (>=0.11 && <1), text (>=1.2 && <2), warp (>=3.2 && <4) [details]
License LGPL-3.0-only
Copyright (c) 2018 Chordify
Author Chordify
Maintainer Matthias Benkort <matthias.benkort@gmail.com> , Jeroen Bransen <jeroen.bransen@chordify.net> , Chordify <haskelldevelopers@chordify.net>
Revised Revision 1 made by KtorZ at 2018-02-06T14:48:54Z
Category Web
Home page https://github.com/chordify/haskell-servant-pagination
Bug tracker https://github.com/chordify/haskell-servant-pagination/issues
Source repo head: git clone git://github.com/chordify/haskell-servant-pagination.git
Uploaded by KtorZ at 2018-02-06T13:58:03Z
Distributions NixOS:2.5.1
Reverse Dependencies 1 direct, 0 indirect [details]
Executables servant-pagination-complex, servant-pagination-simple
Downloads 5972 total (46 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-02-06 [all 1 reports]