ghcjs-base-0.2.0.0: base library for GHCJS

Copyright(c) 2012 Bryan O'Sullivan
(c) 2011 2012 Bas Van Dijk
(c) 2011 MailRank Inc.
LicenseApache
MaintainerBryan O'Sullivan <bos@serpentine.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

JavaScript.JSON.Types.Generic

Contents

Description

Types for working with JSON data.

Orphan instances

GFromJSON (U1 :: * -> *) Source # 
Instance details

Methods

gParseJSON :: Options -> Value -> Parser (U1 a) Source #

GToJSON (U1 :: * -> *) Source # 
Instance details

Methods

gToJSON :: Options -> U1 a -> Value Source #

FromJSON a => GFromJSON (K1 i a :: * -> *) Source # 
Instance details

Methods

gParseJSON :: Options -> Value -> Parser (K1 i a a0) Source #

(AllNullary (a :+: b) allNullary, ParseSum (a :+: b) allNullary) => GFromJSON (a :+: b) Source # 
Instance details

Methods

gParseJSON :: Options -> Value -> Parser ((a :+: b) a0) Source #

(FromProduct a, FromProduct b, ProductSize a, ProductSize b) => GFromJSON (a :*: b) Source # 
Instance details

Methods

gParseJSON :: Options -> Value -> Parser ((a :*: b) a0) Source #

ConsFromJSON a => GFromJSON (C1 c a) Source # 
Instance details

Methods

gParseJSON :: Options -> Value -> Parser (C1 c a a0) Source #

ToJSON a => GToJSON (K1 i a :: * -> *) Source # 
Instance details

Methods

gToJSON :: Options -> K1 i a a0 -> Value Source #

(AllNullary (a :+: b) allNullary, SumToJSON (a :+: b) allNullary) => GToJSON (a :+: b) Source # 
Instance details

Methods

gToJSON :: Options -> (a :+: b) a0 -> Value Source #

(WriteProduct a, WriteProduct b, ProductSize a, ProductSize b) => GToJSON (a :*: b) Source # 
Instance details

Methods

gToJSON :: Options -> (a :*: b) a0 -> Value Source #

ConsToJSON a => GToJSON (C1 c a) Source # 
Instance details

Methods

gToJSON :: Options -> C1 c a a0 -> Value Source #

GFromJSON a => GFromJSON (M1 i c a) Source # 
Instance details

Methods

gParseJSON :: Options -> Value -> Parser (M1 i c a a0) Source #

GToJSON a => GToJSON (M1 i c a) Source # 
Instance details

Methods

gToJSON :: Options -> M1 i c a a0 -> Value Source #