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
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 # | |
Generic ResourceCount Source # | |
Defined in Network.JSONApi.Pagination type Rep ResourceCount :: Type -> Type # from :: ResourceCount -> Rep ResourceCount x # to :: Rep ResourceCount x -> ResourceCount # | |
NFData ResourceCount Source # | |
Defined in Network.JSONApi.Pagination rnf :: ResourceCount -> () # | |
type Rep ResourceCount Source # | |
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))) |