Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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 :: !Integer
- pageSize :: !Integer
- total :: !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
data PagingInformation Source
PagingInformation | |
|