ideas-1.8: 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 # 
Instance details

Defined in Ideas.Text.JSON

Methods

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

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

Show JSON Source # 
Instance details

Defined in Ideas.Text.JSON

Methods

showsPrec :: Int -> JSON -> ShowS #

show :: JSON -> String #

showList :: [JSON] -> ShowS #

Arbitrary JSON Source # 
Instance details

Defined in Ideas.Text.JSON

Methods

arbitrary :: Gen JSON

shrink :: JSON -> [JSON]

data Number Source #

Constructors

I Integer 
D Double 
Instances
Eq Number Source # 
Instance details

Defined in Ideas.Text.JSON

Methods

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

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

Show Number Source # 
Instance details

Defined in Ideas.Text.JSON

Arbitrary Number Source # 
Instance details

Defined in Ideas.Text.JSON

Methods

arbitrary :: Gen Number

shrink :: Number -> [Number]

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 # 
Instance details

Defined in Ideas.Text.JSON

InJSON Char Source # 
Instance details

Defined in Ideas.Text.JSON

InJSON Double Source # 
Instance details

Defined in Ideas.Text.JSON

InJSON Int Source # 
Instance details

Defined in Ideas.Text.JSON

InJSON Integer Source # 
Instance details

Defined in Ideas.Text.JSON

InJSON RPCResponse Source # 
Instance details

Defined in Ideas.Text.JSON

InJSON a => InJSON [a] Source # 
Instance details

Defined in Ideas.Text.JSON

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 # 
Instance details

Defined in Ideas.Text.JSON

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 # 
Instance details

Defined in Ideas.Text.JSON

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 # 
Instance details

Defined in Ideas.Text.JSON

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 #

propEncoding :: Property Source #