fields-json-0.4.0.0: 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
LanguageHaskell2010

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

ToJSValue Double Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Float Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Int Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Int8 Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Int16 Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Int32 Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Int64 Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Integer Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Word Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Word8 Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Word16 Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Word32 Source # 
Instance details

Defined in Text.JSON.ToJSValue

ToJSValue Word64 Source # 
Instance details

Defined in Text.JSON.ToJSValue

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