Skip to content

Commit f2073e7

Browse files
committed
Add since annotations to ToJSON Down
1 parent 328e907 commit f2073e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Data/Aeson/Types/ToJSON.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,11 +2074,13 @@ instance ToJSONKey QuarterOfYear where
20742074
-- base Down
20752075
-------------------------------------------------------------------------------
20762076

2077+
-- | @since 2.2.0.0
20772078
instance ToJSON1 Down where
20782079
liftToJSON _ t _ = coerce t
20792080
liftToEncoding _ t _ = coerce t
20802081
liftOmitField = coerce
20812082

2083+
-- | @since 2.2.0.0
20822084
instance ToJSON a => ToJSON (Down a) where
20832085
toJSON = toJSON1
20842086
toEncoding = toEncoding1

0 commit comments

Comments
 (0)