hasql-interpolate-0.1.0.0: QuasiQuoter that supports expression interpolation for hasql
Safe HaskellNone
LanguageHaskell2010

Hasql.Interpolate.Internal.Json

Synopsis

Documentation

newtype Json Source #

Newtype for DecodeValue / EncodeValue instances that converts between a postgres json type and an Aeson Value

Constructors

Json Value 

Instances

Instances details
DecodeValue Json Source #

Parse a postgres json using json

Instance details

Defined in Hasql.Interpolate.Internal.Json

EncodeValue Json Source #

Encode an Aeson Value to a postgres json using json

Instance details

Defined in Hasql.Interpolate.Internal.Json

newtype Jsonb Source #

Newtype for DecodeValue / EncodeValue instances that converts between a postgres json type and an Aeson Value

Constructors

Jsonb Value 

Instances

Instances details
DecodeValue Jsonb Source #

Parse a postgres jsonb using jsonb

Instance details

Defined in Hasql.Interpolate.Internal.Json

EncodeValue Jsonb Source #

Encode an Aeson Value to a postgres jsonb using jsonb

Instance details

Defined in Hasql.Interpolate.Internal.Json

newtype AsJson a Source #

Newtype for DecodeValue / EncodeValue instances that converts between a postgres json type and anything that is an instance of FromJSON / ToJSON

Constructors

AsJson a 

Instances

Instances details
FromJSON a => DecodeValue (AsJson a) Source #

Parse a postgres json to anything that is an instance of FromJSON

Instance details

Defined in Hasql.Interpolate.Internal.Json

ToJSON a => EncodeValue (AsJson a) Source #

Encode anything that is an instance of ToJSON to a postgres json

Instance details

Defined in Hasql.Interpolate.Internal.Json

newtype AsJsonb a Source #

Newtype for DecodeValue / EncodeValue instances that converts between a postgres jsonb type and anything that is an instance of FromJSON / ToJSON

Constructors

AsJsonb a 

Instances

Instances details
FromJSON a => DecodeValue (AsJsonb a) Source #

Parse a postgres jsonb to anything that is an instance of FromJSON

Instance details

Defined in Hasql.Interpolate.Internal.Json

ToJSON a => EncodeValue (AsJsonb a) Source #

Encode anything that is an instance of ToJSON to a postgres jsonb

Instance details

Defined in Hasql.Interpolate.Internal.Json