Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Servant.Hateoas.ContentType.HAL
Synopsis
- data HAL (t :: Type)
- data HALResource a = HALResource {
- resource :: a
- links :: [(String, Link)]
- embedded :: [(String, SomeToJSON HALResource)]
Documentation
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 Methods mimeRender :: Proxy (HAL JSON) -> HALResource a -> ByteString # |
data HALResource a Source #
Resource wrapper for HAL.
Constructors
HALResource | |
Fields
|