Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Collection (t :: Type)
- data CollectionResource a
- data HAL (t :: Type)
- data HALResource a
- module Servant.Hateoas.Resource
- module Servant.Hateoas.Some
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
.
Instances
Data-Kind representing Content-Types of Hypertext Application Language (HAL).
Type parameter t
is the mime type suffix in application/hal+t
.
Instances
Accept (HAL JSON) Source # | |
Defined in Servant.Hateoas.ContentType.HAL | |
ToJSON a => MimeRender (HAL JSON) (HALResource a) Source # | |
Defined in Servant.Hateoas.ContentType.HAL mimeRender :: Proxy (HAL JSON) -> HALResource a -> ByteString # |
data HALResource a Source #
Resource wrapper for HAL.
Instances
module Servant.Hateoas.Resource
module Servant.Hateoas.Some