json-api-lib-0.1.3.0: Utilities for generating JSON-API payloads

Safe HaskellNone
LanguageHaskell2010

Network.JSONApi.Pagination

Synopsis

Documentation

data Pagination Source #

Wrapper type for the various components of pagination being page size, page number and the number of resources in total.

Instances
Generic Pagination Source # 
Instance details

Defined in Network.JSONApi.Pagination

Associated Types

type Rep Pagination :: Type -> Type #

ToJSON Pagination Source # 
Instance details

Defined in Network.JSONApi.Pagination

NFData Pagination Source # 
Instance details

Defined in Network.JSONApi.Pagination

Methods

rnf :: Pagination -> () #

MetaObject Pagination Source #

Pagination can be used as a meta object if required in addition to the links generated for paging.

Instance details

Defined in Network.JSONApi.Pagination

type Rep Pagination Source # 
Instance details

Defined in Network.JSONApi.Pagination

type Rep Pagination = D1 (MetaData "Pagination" "Network.JSONApi.Pagination" "json-api-lib-0.1.3.0-6YcBiX2ASZQ3iU3wpNCPjK" False) (C1 (MetaCons "Pagination" PrefixI True) (S1 (MetaSel (Just "getPaginationPageSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PageSize) :*: (S1 (MetaSel (Just "getPaginationPageNum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PageNum) :*: S1 (MetaSel (Just "getPaginationResourceCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ResourceCount))))

newtype PageNum Source #

Constructors

PageNum 

Fields

Instances
Show PageNum Source # 
Instance details

Defined in Network.JSONApi.Pagination

Generic PageNum Source # 
Instance details

Defined in Network.JSONApi.Pagination

Associated Types

type Rep PageNum :: Type -> Type #

Methods

from :: PageNum -> Rep PageNum x #

to :: Rep PageNum x -> PageNum #

NFData PageNum Source # 
Instance details

Defined in Network.JSONApi.Pagination

Methods

rnf :: PageNum -> () #

type Rep PageNum Source # 
Instance details

Defined in Network.JSONApi.Pagination

type Rep PageNum = D1 (MetaData "PageNum" "Network.JSONApi.Pagination" "json-api-lib-0.1.3.0-6YcBiX2ASZQ3iU3wpNCPjK" True) (C1 (MetaCons "PageNum" PrefixI True) (S1 (MetaSel (Just "getPageNum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

newtype PageSize Source #

We can specify limits on the number of rows we would like back from the database

Constructors

PageSize 

Fields

Instances
Show PageSize Source # 
Instance details

Defined in Network.JSONApi.Pagination

Generic PageSize Source # 
Instance details

Defined in Network.JSONApi.Pagination

Associated Types

type Rep PageSize :: Type -> Type #

Methods

from :: PageSize -> Rep PageSize x #

to :: Rep PageSize x -> PageSize #

NFData PageSize Source # 
Instance details

Defined in Network.JSONApi.Pagination

Methods

rnf :: PageSize -> () #

type Rep PageSize Source # 
Instance details

Defined in Network.JSONApi.Pagination

type Rep PageSize = D1 (MetaData "PageSize" "Network.JSONApi.Pagination" "json-api-lib-0.1.3.0-6YcBiX2ASZQ3iU3wpNCPjK" True) (C1 (MetaCons "PageSize" PrefixI True) (S1 (MetaSel (Just "getPageSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

newtype ResourceCount Source #

Constructors

ResourceCount 
Instances
Show ResourceCount Source # 
Instance details

Defined in Network.JSONApi.Pagination

Generic ResourceCount Source # 
Instance details

Defined in Network.JSONApi.Pagination

Associated Types

type Rep ResourceCount :: Type -> Type #

NFData ResourceCount Source # 
Instance details

Defined in Network.JSONApi.Pagination

Methods

rnf :: ResourceCount -> () #

type Rep ResourceCount Source # 
Instance details

Defined in Network.JSONApi.Pagination

type Rep ResourceCount = D1 (MetaData "ResourceCount" "Network.JSONApi.Pagination" "json-api-lib-0.1.3.0-6YcBiX2ASZQ3iU3wpNCPjK" True) (C1 (MetaCons "ResourceCount" PrefixI True) (S1 (MetaSel (Just "getResourceCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))