File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 20
20
#endif
21
21
22
22
#include "overlapping-compat.h"
23
+ #include "incoherent-compat.h"
23
24
24
25
-- TODO: Drop this when we remove support for Data.Attoparsec.Number
25
26
{-# OPTIONS_GHC -fno-warn-deprecations #-}
@@ -1009,7 +1010,7 @@ instance ( Selector s
1009
1010
recordToPairs = fieldToPair
1010
1011
{-# INLINE recordToPairs #-}
1011
1012
1012
- instance OVERLAPPING_
1013
+ instance INCOHERENT_
1013
1014
( Selector s
1014
1015
, GToJSON enc arity (K1 i (Maybe a ))
1015
1016
, GKeyValue enc pairs
Original file line number Diff line number Diff line change @@ -252,6 +252,11 @@ incoherentInstancesNeededParseJSONString :: FromJSON a => Value -> Parser (Incoh
252
252
incoherentInstancesNeededParseJSONString = case () of
253
253
_ | True -> $ (mkParseJSON defaultOptions ''IncoherentInstancesNeeded)
254
254
| False -> genericParseJSON defaultOptions
255
+
256
+ incoherentInstancesNeededToJSON :: ToJSON a => IncoherentInstancesNeeded a -> Value
257
+ incoherentInstancesNeededToJSON = case () of
258
+ _ | True -> $ (mkToJSON defaultOptions ''IncoherentInstancesNeeded)
259
+ | False -> genericToJSON defaultOptions
255
260
#endif
256
261
257
262
-------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments