@@ -2174,6 +2174,13 @@ instance ToJSON a => ToJSON (Semigroup.Option a) where
2174-- tagged
2174-- tagged
2175-------------------------------------------------------------------------------
2175-------------------------------------------------------------------------------
2177+instance ToJSON1 Proxy where
2178+ liftToJSON _ _ _ = Null
2179+ {-# INLINE liftToJSON #-}
2181+ liftToEncoding _ _ _ = E.null_
2182+ {-# INLINE liftToEncoding #-}
2177instance ToJSON (Proxy a) where
2184instance ToJSON (Proxy a) where
2178 toJSON _ = Null
2185 toJSON _ = Null
2179 {-# INLINE toJSON #-}
2186 {-# INLINE toJSON #-}
@@ -2182,6 +2189,13 @@ instance ToJSON (Proxy a) where
2182 {-# INLINE toEncoding #-}
2189 {-# INLINE toEncoding #-}
2192+instance ToJSON2 Tagged where
2193+ liftToJSON2 _ _ t _ (Tagged x) = t x
2194+ {-# INLINE liftToJSON2 #-}
2196+ liftToEncoding2 _ _ t _ (Tagged x) = t x
2197+ {-# INLINE liftToEncoding2 #-}
2185instance ToJSON1 (Tagged a) where
2199instance ToJSON1 (Tagged a) where
2186 liftToJSON t _ (Tagged x) = t x
2200 liftToJSON t _ (Tagged x) = t x
2187 {-# INLINE liftToJSON #-}
2201 {-# INLINE liftToJSON #-}
@@ -2196,7 +2210,6 @@ instance ToJSON b => ToJSON (Tagged a b) where
2196 toEncoding = toEncoding1
2210 toEncoding = toEncoding1
2197 {-# INLINE toEncoding #-}
2211 {-# INLINE toEncoding #-}
2200instance ToJSONKey b => ToJSONKey (Tagged a b) where
2213instance ToJSONKey b => ToJSONKey (Tagged a b) where
2201 toJSONKey = contramapToJSONKeyFunction unTagged toJSONKey
2214 toJSONKey = contramapToJSONKeyFunction unTagged toJSONKey
2202 toJSONKeyList = contramapToJSONKeyFunction (fmap unTagged) toJSONKeyList
2215 toJSONKeyList = contramapToJSONKeyFunction (fmap unTagged) toJSONKeyList