| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stratosphere.NamedItem
Synopsis
- class NamedItem a where
- itemName :: a -> Text
- nameToJSON :: a -> Value
- namedItemToJSON :: NamedItem a => [a] -> Value
Documentation
class NamedItem a where Source #
This class defines items with names in them. It is used to extract the name from JSON fields so we can get an Object with the names as keys instead of just an array.
namedItemToJSON :: NamedItem a => [a] -> Value Source #