Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.JSONApi.Pagination
Synopsis
- data Pagination = Pagination {}
- newtype PageNum = PageNum {
- getPageNum :: Int
- newtype PageSize = PageSize {
- getPageSize :: Int
- newtype ResourceCount = ResourceCount {}
Documentation
data Pagination Source #
Wrapper type for the various components of pagination being page size, page number and the number of resources in total.
Constructors
Pagination | |
Instances
Constructors
PageNum | |
Fields
|
We can specify limits on the number of rows we would like back from the database
Constructors
PageSize | |
Fields
|
newtype ResourceCount Source #
Constructors
ResourceCount | |
Fields |
Instances
Show ResourceCount Source # | |
Defined in Network.JSONApi.Pagination Methods showsPrec :: Int -> ResourceCount -> ShowS # show :: ResourceCount -> String # showList :: [ResourceCount] -> ShowS # | |
Generic ResourceCount Source # | |
Defined in Network.JSONApi.Pagination Associated Types type Rep ResourceCount :: Type -> Type # | |
NFData ResourceCount Source # | |
Defined in Network.JSONApi.Pagination Methods rnf :: ResourceCount -> () # | |
type Rep ResourceCount Source # | |
Defined in Network.JSONApi.Pagination type Rep ResourceCount = D1 (MetaData "ResourceCount" "Network.JSONApi.Pagination" "json-api-lib-0.2.0.0-CIYDoTtBA9V1pU3j2B9t69" True) (C1 (MetaCons "ResourceCount" PrefixI True) (S1 (MetaSel (Just "getResourceCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) |