fields-json-0.2.2.4: Abusing monadic syntax JSON objects generation.

Copyright(c) Scrive 2011
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainermariusz@scrive.com
Stabilitydevelopment
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.JSON.ToJSValue

Description

Unifing some structures so they can be serialized to JSValue

Documentation

class ToJSValue a where Source #

Methods

toJSValue :: a -> JSValue Source #

Instances
ToJSValue Bool Source # 
Instance details

Defined in Text.JSON.ToJSValue

Real a => ToJSValue a Source # 
Instance details

Defined in Text.JSON.ToJSValue

Methods

toJSValue :: a -> JSValue Source #

ToJSValue String Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue JSValue Source # 
Instance details

Defined in Text.JSON.ToJSValue

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

Defined in Text.JSON.ToJSValue

Methods

toJSValue :: [a] -> JSValue Source #

ToJSValue a => ToJSValue (Maybe a) Source # 
Instance details

Defined in Text.JSON.ToJSValue

Methods

toJSValue :: Maybe a -> JSValue Source #

(ToJSValue a, ToJSValue b) => ToJSValue (a, b) Source # 
Instance details

Defined in Text.JSON.ToJSValue

Methods

toJSValue :: (a, b) -> JSValue Source #

ToJSValue a => ToJSValue (Map String a) Source # 
Instance details

Defined in Text.JSON.ToJSValue