Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data HAL (t :: Type)
- data HALResource a = HALResource {
- resource :: a
- rels :: [(String, ResourceLink)]
- embedded :: [(String, SomeF HALResource ToJSON)]
Content-Type
Type 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 (HALResource a) => MimeRender (HAL JSON) (HALResource a) Source # | |
Defined in Servant.Hateoas.ContentType.HAL mimeRender :: Proxy (HAL JSON) -> HALResource a -> ByteString # | |
type MkResource (HAL t) Source # | |
Defined in Servant.Hateoas.ContentType.HAL |
Resource-Type
data HALResource a Source #
HAL-resource representation.
HALResource | |
|