Safe Haskell | None |
---|---|
Language | Haskell98 |
JSON serialization and de-serialization for Haste.
- class Serialize a where
- toJSON :: a -> JSON
- listToJSON :: [a] -> JSON
- parseJSON :: JSON -> Parser a
- parseJSONList :: JSON -> Parser [a]
- data Parser a
- fromJSON :: Serialize a => JSON -> Either String a
- (.:) :: Serialize a => JSON -> JSString -> Parser a
- (.:?) :: Serialize a => JSON -> JSString -> Parser (Maybe a)
Documentation
class Serialize a where Source
listToJSON :: [a] -> JSON Source
parseJSON :: JSON -> Parser a Source
parseJSONList :: JSON -> Parser [a] Source
Serialize Bool | |
Serialize Char | |
Serialize Double | |
Serialize Float | |
Serialize Int | |
Serialize Int8 | |
Serialize Int16 | |
Serialize Int32 | |
Serialize () | |
Serialize JSString | |
Serialize JSON | |
Serialize a => Serialize [a] | |
Serialize a => Serialize (Maybe a) | |
(Serialize a, Serialize b) => Serialize (Either a b) | |
(Serialize a, Serialize b) => Serialize (a, b) |