Copyright | (c) Alex Brandt 2017 |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell2010 |
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.
Entity | |
|
Nested object for an application/vnd.siren+json
.
Link to a related resource.
Behavior of an Entity
.
Control inside of an Action
.
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
.
fromEntity :: Entity -> a Source #