Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pagination instance for HasClient
Documentation
Pagination parameters
Paged | |
|
Instances
Eq Paged | |
Ord Paged | |
Defined in Blockfrost.Util.Pagination |
|
Show Paged | |
Default Paged | |
Defined in Blockfrost.Util.Pagination |
paged :: Int -> Int -> Paged Source #
Construct
Paged
from page size and page number.
Throws error on invalid values.
allPages :: Monad m => ( Paged -> m [a]) -> m [a] Source #
Query all results, until we get less than maximum items per page.