Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data HAL (t :: Type)
- data HALResource a = HALResource {
- resource :: a
- links :: [(String, Link)]
- embedded :: [(String, SomeToJSON HALResource)]
Documentation
Data-Kind representing Content-Types with Hypertext Application Language (HAL).
Type parameter t
is the mime type suffix in application/hal+t
.
Instances
(Related a, HasField (IdSelName a) a id, IsElem (GetOneApi a) api, HasLink (GetOneApi a), MkLink (GetOneApi a) Link ~ (id -> Link), BuildRels api (Relations a) a, HasResource (HAL t)) => ToResource (HAL t :: Type) (api :: Type) a Source # | |
Defined in Servant.Hateoas.ContentType.HAL | |
Accept (HAL JSON) Source # | |
Defined in Servant.Hateoas.ContentType.HAL | |
HasResource (HAL t :: Type) Source # | |
type Resource (HAL t :: Type) Source # | |
Defined in Servant.Hateoas.ContentType.HAL |
data HALResource a Source #
Resource wrapper for HAL.
HALResource | |
|