blockfrost-client-core-0.4.0.2: blockfrost.io common client definitions / instances
Safe Haskell None
Language Haskell2010

Blockfrost.Client.Pagination

Description

Pagination instance for HasClient

Synopsis

Documentation

page :: Int -> Paged Source #

Default Paged at specific page number

paged :: Int -> Int -> Paged Source #

Construct Paged from page size and page number.

Throws error on invalid values.

nextPage :: Paged -> Paged Source #

Increment page number

allPages :: Monad m => ( Paged -> m [a]) -> m [a] Source #

Query all results, until we get less than maximum items per page.

Orphan instances

HasClient m subApi => HasClient m (Pagination :> subApi) Source #
Instance details

Associated Types

type Client m (Pagination :> subApi) Source #

Methods

clientWithRoute :: Proxy m -> Proxy (Pagination :> subApi) -> Request -> Client m (Pagination :> subApi) Source #

hoistClientMonad :: Proxy m -> Proxy (Pagination :> subApi) -> ( forall x. mon x -> mon' x) -> Client mon (Pagination :> subApi) -> Client mon' (Pagination :> subApi) Source #