Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Cursor = Cursor {
- resultPerPage ∷ !Natural
- cursor ∷ !(Maybe NextCursor)
- maxResultsPerPage ∷ Natural
- allPages ∷ (Monad m, HasCursor a) ⇒ (Cursor → m a) → m (TimestampedData a)
- data Pagination
- type PaginationApi api = QueryParam "count" Natural :> (QueryParam "cursor" NextCursor :> api)
Documentation
Cursor | |
|
Instances
Default Cursor # | |
Defined in Maestro.Client.V1.Core.Pagination |
Maximum number of result per page.
data Pagination #
Instances
HasClient m api ⇒ HasClient m (Pagination :> api) # | |
Defined in Maestro.Client.V1.Core.Pagination type Client m (Pagination :> api) clientWithRoute ∷ Proxy m → Proxy (Pagination :> api) → Request → Client m (Pagination :> api) hoistClientMonad ∷ Proxy m → Proxy (Pagination :> api) → (∀ x. mon x → mon' x) → Client mon (Pagination :> api) → Client mon' (Pagination :> api) | |
type Client m (Pagination :> api) # | |
Defined in Maestro.Client.V1.Core.Pagination |
type PaginationApi api = QueryParam "count" Natural :> (QueryParam "cursor" NextCursor :> api) #