File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -2335,33 +2335,21 @@ instance FromJSON a => FromJSON (Monoid.Dual a) where
2335
2335
parseJSON = parseJSON1
2336
2336
2337
2337
instance FromJSON1 Monoid. Sum where
2338
- liftParseJSON _ p _ a = coerce (p a)
2339
-
2340
- liftParseJSONList _ _ p a = coerce (p a)
2338
+ liftParseJSON _ p _ = coerce p
2341
2339
2342
2340
liftOmittedField = coerce
2343
2341
2344
2342
instance (FromJSON a ) => FromJSON (Monoid. Sum a ) where
2345
2343
parseJSON = parseJSON1
2346
2344
2347
- parseJSONList = liftParseJSONList omittedField parseJSON parseJSONList
2348
-
2349
- omittedField = omittedField1
2350
-
2351
2345
instance FromJSON1 Monoid. Product where
2352
- liftParseJSON _ p _ a = coerce (p a)
2353
-
2354
- liftParseJSONList _ _ p a = coerce (p a)
2346
+ liftParseJSON _ p _ = coerce p
2355
2347
2356
2348
liftOmittedField = coerce
2357
2349
2358
2350
instance (FromJSON a ) => FromJSON (Monoid. Product a ) where
2359
2351
parseJSON = parseJSON1
2360
2352
2361
- parseJSONList = liftParseJSONList omittedField parseJSON parseJSONList
2362
-
2363
- omittedField = omittedField1
2364
-
2365
2353
instance FromJSON Monoid. All where
2366
2354
parseJSON = coerce . (parseJSON :: Value -> Parser Bool )
2367
2355
You can’t perform that action at this time.
0 commit comments