freer-extras-1.2.0.0: Useful extensions to simple-freer
Safe Haskell None
Language Haskell2010

Control.Monad.Freer.Extras.Pagination

Synopsis

Documentation

data PageQuery a Source #

Query parameters for pagination.

Constructors

PageQuery

Fields

Instances

Instances details
Functor PageQuery Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Eq a => Eq ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Ord a => Ord ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Show a => Show ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Generic ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Associated Types

type Rep ( PageQuery a) :: Type -> Type Source #

ToJSON a => ToJSON ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

FromJSON a => FromJSON ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Default ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

type Rep ( PageQuery a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

type Rep ( PageQuery a) = D1 (' MetaData "PageQuery" "Control.Monad.Freer.Extras.Pagination" "freer-extras-1.2.0.0-LXgx2kLJeQTLxOMFH7LYd8" ' False ) ( C1 (' MetaCons "PageQuery" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "pageQuerySize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 PageSize ) :*: S1 (' MetaSel (' Just "pageQueryLastItem") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe a))))

data Page a Source #

Part of a collection.

Constructors

Page

Fields

Instances

Instances details
Functor Page Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Eq a => Eq ( Page a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Ord a => Ord ( Page a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Show a => Show ( Page a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Generic ( Page a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Associated Types

type Rep ( Page a) :: Type -> Type Source #

ToJSON a => ToJSON ( Page a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

FromJSON a => FromJSON ( Page a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

type Rep ( Page a) Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

newtype PageSize Source #

Instances

Instances details
Eq PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Num PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Ord PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Show PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Generic PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

ToJSON PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

FromJSON PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

Default PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

type Rep PageSize Source #
Instance details

Defined in Control.Monad.Freer.Extras.Pagination

type Rep PageSize = D1 (' MetaData "PageSize" "Control.Monad.Freer.Extras.Pagination" "freer-extras-1.2.0.0-LXgx2kLJeQTLxOMFH7LYd8" ' True ) ( C1 (' MetaCons "PageSize" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getPageSize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural )))

pageOf Source #

Arguments

:: Eq a
=> PageQuery a

Pagination query parameters.

-> Set a
-> Page a

Given a Set , request the Page with the given PageQuery .