@@ -2165,6 +2165,13 @@ instance ToJSON a => ToJSON (Semigroup.Option a) where
2165-- tagged
2165-- tagged
2166-------------------------------------------------------------------------------
2166-------------------------------------------------------------------------------
2168+instance ToJSON1 Proxy where
2169+ liftToJSON _ _ _ = Null
2170+ {-# INLINE liftToJSON #-}
2172+ liftToEncoding _ _ _ = E.null_
2173+ {-# INLINE liftToEncoding #-}
2168instance ToJSON (Proxy a) where
2175instance ToJSON (Proxy a) where
2169 toJSON _ = Null
2176 toJSON _ = Null
2170 {-# INLINE toJSON #-}
2177 {-# INLINE toJSON #-}
@@ -2173,6 +2180,13 @@ instance ToJSON (Proxy a) where
2173 {-# INLINE toEncoding #-}
2180 {-# INLINE toEncoding #-}
2183+instance ToJSON2 Tagged where
2184+ liftToJSON2 _ _ t _ (Tagged x) = t x
2185+ {-# INLINE liftToJSON2 #-}
2187+ liftToEncoding2 _ _ t _ (Tagged x) = t x
2188+ {-# INLINE liftToEncoding2 #-}
2176instance ToJSON1 (Tagged a) where
2190instance ToJSON1 (Tagged a) where
2177 liftToJSON t _ (Tagged x) = t x
2191 liftToJSON t _ (Tagged x) = t x
2178 {-# INLINE liftToJSON #-}
2192 {-# INLINE liftToJSON #-}
@@ -2187,7 +2201,6 @@ instance ToJSON b => ToJSON (Tagged a b) where
2187 toEncoding = toEncoding1
2201 toEncoding = toEncoding1
2188 {-# INLINE toEncoding #-}
2202 {-# INLINE toEncoding #-}
2191instance ToJSONKey b => ToJSONKey (Tagged a b) where
2204instance ToJSONKey b => ToJSONKey (Tagged a b) where
2192 toJSONKey = contramapToJSONKeyFunction unTagged toJSONKey
2205 toJSONKey = contramapToJSONKeyFunction unTagged toJSONKey
2193 toJSONKeyList = contramapToJSONKeyFunction (fmap unTagged) toJSONKeyList
2206 toJSONKeyList = contramapToJSONKeyFunction (fmap unTagged) toJSONKeyList