@@ -902,8 +902,8 @@ json and jsonb operators
902902see https://www.postgresql.org/docs/10/static/functions-json.html
903903-----------------------------------------}
904904
905−type IsJSONKey key = key `In` '[ 'PGint2, 'PGint4, 'PGtext ]
906−type IsJSON json = json `In` '[ 'PGjson, 'PGjsonb ]
905+type PGjsonKey key = key `In` '[ 'PGint2, 'PGint4, 'PGtext ]
906+type PGjson_ json = json `In` '[ 'PGjson, 'PGjsonb ]
907907
908908type Placeholder k
909909 = 'Text "(_"
@@ -937,7 +937,7 @@ type IsPGtextArray arr = PGarrayOf arr 'PGtext
937937
938938-- | Get JSON value (object field or array element) at a key.
939939(.->)
940− :: (IsJSON json, IsJSONKey key)
940+ :: (PGjson_ json, PGjsonKey key)
941941 => Expression schema relations grouping params (jnull json)
942942 -> Expression schema relations grouping params (knull key)
943943 -> Expression schema relations grouping params ('Null json)
@@ -945,7 +945,7 @@ type IsPGtextArray arr = PGarrayOf arr 'PGtext
945945
946946-- | Get JSON value (object field or array element) at a key, as text.
947947(.->>)
948− :: (IsJSON json, IsJSONKey key)
948+ :: (PGjson_ json, PGjsonKey key)
949949 => Expression schema relations grouping params (jnull json)
950950 -> Expression schema relations grouping params (knull key)
951951 -> Expression schema relations grouping params ('Null 'PGtext)
@@ -953,7 +953,7 @@ type IsPGtextArray arr = PGarrayOf arr 'PGtext
953953
954954-- | Get JSON value at a specified path.
955955(.#>)
956− :: (IsJSON json, IsPGtextArray path)
956+ :: (PGjson_ json, IsPGtextArray path)
957957 => Expression schema relations grouping params (jnull json)
958958 -> Expression schema relations grouping params (knull path)
959959 -> Expression schema relations grouping params ('Null json)
@@ -961,7 +961,7 @@ type IsPGtextArray arr = PGarrayOf arr 'PGtext
961961
962962-- | Get JSON value at a specified path as text.
963963(.#>>)
964− :: (IsJSON json, IsPGtextArray path)
964+ :: (PGjson_ json, IsPGtextArray path)
965965 => Expression schema relations grouping params (jnull json)
966966 -> Expression schema relations grouping params (knull path)
967967 -> Expression schema relations grouping params ('Null 'PGtext)