ideas-1.1: Feedback services for intelligent tutoring systems

Portabilityportable (depends on ghc)
Stabilityprovisional
Maintainerbastiaan.heeren@ou.nl
Safe HaskellNone

Ideas.Text.JSON

Description

Support for JavaScript Object Notation (JSON) and remote procedure calls using JSON. JSON is a lightweight alternative for XML.

Documentation

data Number Source

Constructors

I Integer 
D Double 

class InJSON a whereSource

Methods

toJSON :: a -> JSONSource

listToJSON :: [a] -> JSONSource

fromJSON :: Monad m => JSON -> m aSource

listFromJSON :: Monad m => JSON -> m [a]Source

Instances

InJSON Bool 
InJSON Char 
InJSON Double 
InJSON Int 
InJSON Integer 
InJSON IOException 
InJSON a => InJSON [a] 
(InJSON a, InJSON b) => InJSON (a, b) 
(InJSON a, InJSON b, InJSON c) => InJSON (a, b, c) 
(InJSON a, InJSON b, InJSON c, InJSON d) => InJSON (a, b, c, d) 

jsonRPC :: (MonadError a m, InJSON a) => JSON -> RPCHandler m -> m RPCResponseSource

type RPCHandler m = String -> JSON -> m JSONSource