Copyright | (C) 2017- Mark Andrus Roberts |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell98 |
Synopsis
- class FromJSON b => List a b | a -> b where
- getListWrapper :: Wrapper (Maybe PagingInformation -> [b] -> a)
- getList :: a -> [b]
- getPlural :: Const Text (a, b)
- parseJSONToList :: Value -> Parser a
- data PagingInformation = PagingInformation {
- pageNumber :: !Integer
- numberOfPages :: !(Maybe Integer)
- pageSize :: !Integer
- total :: !(Maybe Integer)
- start :: !Integer
- end :: !Integer
- pageURI :: !(Maybe URI)
- firstPageURI :: !(Maybe URI)
- nextPageURI :: !(Maybe URI)
- previousPageURI :: !(Maybe URI)
- lastPageURI :: !(Maybe URI)
- data Wrapper a
- wrap :: a -> Wrapper a
Documentation
class FromJSON b => List a b | a -> b where Source #
getListWrapper :: Wrapper (Maybe PagingInformation -> [b] -> a) Source #
The items in the List
.
getPlural :: Const Text (a, b) Source #
The plural name for the items in the List
.
parseJSONToList :: Value -> Parser a Source #
Instances
data PagingInformation Source #
PagingInformation | |
|