Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | Safe |
Language | Haskell98 |
Support for JavaScript Object Notation (JSON) and remote procedure calls using JSON. JSON is a lightweight alternative for XML.
Documentation
listToJSON :: [a] -> JSON Source #
fromJSON :: Monad m => JSON -> m a Source #
listFromJSON :: Monad m => JSON -> m [a] Source #
Instances
InJSON Bool Source # | |
InJSON Char Source # | |
InJSON Double Source # | |
InJSON Int Source # | |
InJSON Integer Source # | |
InJSON RPCResponse Source # | |
Defined in Ideas.Text.JSON toJSON :: RPCResponse -> JSON Source # listToJSON :: [RPCResponse] -> JSON Source # fromJSON :: Monad m => JSON -> m RPCResponse Source # listFromJSON :: Monad m => JSON -> m [RPCResponse] Source # | |
InJSON a => InJSON [a] Source # | |
(InJSON a, InJSON b) => InJSON (a, b) Source # | |
(InJSON a, InJSON b, InJSON c) => InJSON (a, b, c) Source # | |
(InJSON a, InJSON b, InJSON c, InJSON d) => InJSON (a, b, c, d) Source # | |
compactJSON :: JSON -> String Source #
jsonRPC :: JSON -> RPCHandler -> IO RPCResponse Source #
data RPCResponse Source #
Response | |
|
Instances
Show RPCResponse Source # | |
Defined in Ideas.Text.JSON showsPrec :: Int -> RPCResponse -> ShowS # show :: RPCResponse -> String # showList :: [RPCResponse] -> ShowS # | |
InJSON RPCResponse Source # | |
Defined in Ideas.Text.JSON toJSON :: RPCResponse -> JSON Source # listToJSON :: [RPCResponse] -> JSON Source # fromJSON :: Monad m => JSON -> m RPCResponse Source # listFromJSON :: Monad m => JSON -> m [RPCResponse] Source # |
propEncoding :: Property Source #