Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module representing a JSON-API resource object.
Specification: http://jsonapi.org/format/#document-resource-objects
- newtype ResourceId = ResourceId Text
- data ResourceObject a b = ResourceObject {
- getResourceId :: ResourceId
- getResourceType :: ResourceType
- getResource :: a
- getLinks :: Maybe Links
- getMetaData :: Maybe (Meta b)
- newtype ResourceType = ResourceType Text
Documentation
newtype ResourceId Source #
data ResourceObject a b Source #
Type representing a JSON-API resource object.
A ResourceObject supplies standardized data and metadata about a resource.
Specification: http://jsonapi.org/format/#document-resource-objects
ResourceObject | |
|
(Eq b, Eq a) => Eq (ResourceObject a b) Source # | |
(Ord b, Ord a) => Ord (ResourceObject a b) Source # | |
(Show b, Show a) => Show (ResourceObject a b) Source # | |
Generic (ResourceObject a b) Source # | |
(ToJSON a, ToJSON b) => ToJSON (ResourceObject a b) Source # | |
(FromJSON a, FromJSON b) => FromJSON (ResourceObject a b) Source # | |
type Rep (ResourceObject a b) Source # | |