@@ -24,6 +24,7 @@ module Data.Aeson.Types.Instances
2424 -- ** Core JSON classes
2525 FromJSON(..)
2626 , ToJSON(..)
27+ , KeyValue(..)
2728 -- ** Generic JSON classes
2829 , GFromJSON(..)
2930 , GToJSON(..)
@@ -46,7 +47,6 @@ module Data.Aeson.Types.Instances
4647 , (.:)
4748 , (.:?)
4849 , (.!=)
49− , Pairable(..)
5050 , series
5151 , typeMismatch
5252 ) where
@@ -1424,11 +1424,11 @@ withBool _ f (Bool arr) = f arr
14241424withBool expected _ v = typeMismatch expected v
14251425{-# INLINE withBool #-}
14261426
1427−instance Pairable Pair where
1427+instance KeyValue Pair where
14281428 name .= value = (name, toJSON value)
14291429 {-# INLINE (.=) #-}
14301430
1431−instance Pairable Series where
1431+instance KeyValue Series where
14321432 name .= value = Value (E.text name <> B.char7 ':' <> toEncoding value)
14331433 {-# INLINE (.=) #-}
14341434