servant-hateoas-0.3.0: HATEOAS extension for servant
Safe HaskellSafe-Inferred
LanguageGHC2021

Servant.Hateoas.ContentType.HAL

Synopsis

Content-Type

data HAL (t :: Type) Source #

Type representing Content-Types of Hypertext Application Language (HAL).

Type parameter t is the mime type suffix in application/hal+t.

Instances

Instances details
Accept (HAL JSON) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

ToJSON (HALResource a) => MimeRender (HAL JSON) (HALResource a) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

type MkResource (HAL t) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

Resource-Type

data HALResource a Source #

HAL-resource representation.

Constructors

HALResource 

Fields

Instances

Instances details
Functor HALResource Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

Methods

fmap :: (a -> b) -> HALResource a -> HALResource b #

(<$) :: a -> HALResource b -> HALResource a #

EmbeddingResource HALResource Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

Resource HALResource Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

ToJSON (HALResource a) => MimeRender (HAL JSON) (HALResource a) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

ToJSON a => ToJSON (HALResource [a]) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

ToJSON a => ToJSON (HALResource a) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

Generic (HALResource a) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

Associated Types

type Rep (HALResource a) :: Type -> Type #

Methods

from :: HALResource a -> Rep (HALResource a) x #

to :: Rep (HALResource a) x -> HALResource a #

type Rep (HALResource a) Source # 
Instance details

Defined in Servant.Hateoas.ContentType.HAL

type Rep (HALResource a) = D1 ('MetaData "HALResource" "Servant.Hateoas.ContentType.HAL" "servant-hateoas-0.3.0-inplace" 'False) (C1 ('MetaCons "HALResource" 'PrefixI 'True) (S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: (S1 ('MetaSel ('Just "rels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, ResourceLink)]) :*: S1 ('MetaSel ('Just "embedded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, SomeF HALResource ToJSON)]))))