siren-json-0.1.3.0: Siren Tools for Haskell

Copyright(c) Alex Brandt 2017
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Data.SirenJSON

Contents

Description

A collection of types and instances for application/vnd.siren+json.

Full documentation for application/vnd.siren+json can be found at https://github.com/kevinswiber/siren.

Synopsis

Core Data Types

data Entity Source #

The top-level object for an application/vnd.siren+json resource.

Constructors

Entity 

Fields

data Link Source #

Link to a related resource.

Constructors

Link 

Fields

Type Conversion

class FromEntity a where Source #

A type that can be converted from Entity.

Minimal complete definition

fromEntity

Methods

fromEntity :: Entity -> a Source #

class ToEntity a where Source #

A type that can be converted to Entity.

Minimal complete definition

toEntity

Methods

toEntity :: a -> Entity Source #