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.
Synopsis
- data Entity = Entity {}
- data SubEntity
- data Link = Link {}
- data Action = Action {}
- data Field = Field {}
- data InputType
- class FromEntity a where
- fromEntity :: Entity -> a
- 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 | |
Behavior of an Entity
.
Constructors
Action | |
Control inside of an Action
.
Constructors
Field | |
Constructors
Hidden | |
Text | |
Search | |
Tel | |
URL | |
Password | |
DateTime | |
Date | |
Month | |
Week | |
Time | |
DateTimeLocal | |
Number | |
Range | |
Color | |
CheckBox | |
Radio | |
File |
Type Conversion
class FromEntity a where Source #
A type that can be converted from Entity
.
Methods
fromEntity :: Entity -> a Source #