Hets - the Heterogeneous Tool Set
Safe HaskellNone

Common.Json.Instances

Orphan instances

(Generic a, GFromJSON Zero (Rep a)) => FromJSON a Source # 
Instance details

Methods

parseJSON :: Value -> Parser a

parseJSONList :: Value -> Parser [a]

(Generic a, FromJSON a) => FromJSONKey a Source # 
Instance details

Methods

fromJSONKey :: FromJSONKeyFunction a

fromJSONKeyList :: FromJSONKeyFunction [a]

(Generic a, GToJSON Zero (Rep a)) => ToJSON a Source # 
Instance details

Methods

toJSON :: a -> Value

toEncoding :: a -> Encoding

toJSONList :: [a] -> Value

toEncodingList :: [a] -> Encoding

(Generic a, ToJSON a) => ToJSONKey a Source # 
Instance details

Methods

toJSONKey :: ToJSONKeyFunction a

toJSONKeyList :: ToJSONKeyFunction [a]