Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
Instances
ToJSON Pagination Source # | |
Defined in Network.JSONApi.Pagination 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 typeName :: Pagination -> Text Source # |
PageNum | |
|
We can specify limits on the number of rows we would like back from the database
newtype ResourceCount Source #
Instances
Show ResourceCount Source # | |
Defined in Network.JSONApi.Pagination showsPrec :: Int -> ResourceCount -> ShowS # show :: ResourceCount -> String # showList :: [ResourceCount] -> ShowS # |