Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module to define types demanded by cursor based pagination to be used by other types defined in Maestro.Types.V1
.
Synopsis
- newtype NextCursor = NextCursor Text
- class (IsTimestamped a, Monoid (TimestampedData a)) ⇒ HasCursor a where
- getNextCursor ∷ a → Maybe NextCursor
Documentation
newtype NextCursor #
Type to denote for cursor to be returned in a paginated endpoint.
Instances
class (IsTimestamped a, Monoid (TimestampedData a)) ⇒ HasCursor a where #
Is the endpoint paged?
getNextCursor ∷ a → Maybe NextCursor #
Get the next cursor from the value of the given type a
.