Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Collection (t :: Type)
- data CollectionResource a = CollectionResource {}
Documentation
data Collection (t :: Type) Source #
Data-Kind representing Content-Types of HATEOAS collections.
Type parameter t
is the Mime-Type suffix in application/vnd.collection+t
.
Instances
Accept (Collection JSON) Source # | |
Defined in Servant.Hateoas.ContentType.Collection contentType :: Proxy (Collection JSON) -> MediaType # contentTypes :: Proxy (Collection JSON) -> NonEmpty MediaType # | |
ToJSON a => MimeRender (Collection JSON) (CollectionResource a) Source # | |
Defined in Servant.Hateoas.ContentType.Collection mimeRender :: Proxy (Collection JSON) -> CollectionResource a -> ByteString # |
data CollectionResource a Source #
Resource wrapper for Collection
.