| Copyright | (c) Alex Brandt 2017 |
|---|---|
| License | MIT |
| Safe Haskell | None |
| Language | Haskell2010 |
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.
- data Entity = Entity {}
- data SubEntity
- data Link = Link {}
- data Action = Action {}
- data Field = Field {}
- data InputType
- class FromEntity a where
- class ToEntity a where
Core Data Types
The top-level object for an application/vnd.siren+json resource.
Constructors
| Entity | |
Fields
| |
Nested object for an application/vnd.siren+json.
Constructors
| EmbeddedLink Link | |
| EmbeddedRepresentation | |
Link to a related resource.
Constructors
| Link | |
Type Conversion
class FromEntity a where Source #
A type that can be converted from Entity.
Minimal complete definition
Methods
fromEntity :: Entity -> a Source #