ideas-1.6: Feedback services for intelligent tutoring systems

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

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 JSON Source #

Instances

Eq JSON Source # 

Methods

(==) :: JSON -> JSON -> Bool #

(/=) :: JSON -> JSON -> Bool #

Show JSON Source # 

Methods

showsPrec :: Int -> JSON -> ShowS #

show :: JSON -> String #

showList :: [JSON] -> ShowS #

Arbitrary JSON Source # 

Methods

arbitrary :: Gen JSON #

shrink :: JSON -> [JSON] #

data Number Source #

Constructors

I Integer 
D Double 

class InJSON a where Source #

Minimal complete definition

toJSON, fromJSON

Methods

toJSON :: a -> JSON Source #

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 IOException Source # 
InJSON RPCResponse Source # 
InJSON a => InJSON [a] Source # 

Methods

toJSON :: [a] -> JSON Source #

listToJSON :: [[a]] -> JSON Source #

fromJSON :: Monad m => JSON -> m [a] Source #

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

(InJSON a, InJSON b) => InJSON (a, b) Source # 

Methods

toJSON :: (a, b) -> JSON Source #

listToJSON :: [(a, b)] -> JSON Source #

fromJSON :: Monad m => JSON -> m (a, b) Source #

listFromJSON :: Monad m => JSON -> m [(a, b)] Source #

(InJSON a, InJSON b, InJSON c) => InJSON (a, b, c) Source # 

Methods

toJSON :: (a, b, c) -> JSON Source #

listToJSON :: [(a, b, c)] -> JSON Source #

fromJSON :: Monad m => JSON -> m (a, b, c) Source #

listFromJSON :: Monad m => JSON -> m [(a, b, c)] Source #

(InJSON a, InJSON b, InJSON c, InJSON d) => InJSON (a, b, c, d) Source # 

Methods

toJSON :: (a, b, c, d) -> JSON Source #

listToJSON :: [(a, b, c, d)] -> JSON Source #

fromJSON :: Monad m => JSON -> m (a, b, c, d) Source #

listFromJSON :: Monad m => JSON -> m [(a, b, c, d)] Source #

lookupM :: Monad m => String -> JSON -> m JSON Source #