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
ToJSON Pagination Source # | |
Defined in Network.JSONApi.Pagination Methods toJSON :: Pagination -> Value # toEncoding :: Pagination -> Encoding # toJSONList :: [Pagination] -> Value # toEncodingList :: [Pagination] -> Encoding # | |
MetaObject Pagination Source # | Pagination can be used as a meta object if required in addition to the links generated for paging. |
Defined in Network.JSONApi.Pagination Methods typeName :: Pagination -> Text Source # |
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 # |