Skip to content

Commit 368dcf2

Browse files
committed
Test incoherent instances for ToJSON
1 parent 7dacc60 commit 368dcf2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Encoders.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ incoherentInstancesNeededParseJSONString :: FromJSON a => Value -> Parser (Incoh
252252
incoherentInstancesNeededParseJSONString = case () of
253253
_ | True -> $(mkParseJSON defaultOptions ''IncoherentInstancesNeeded)
254254
| False -> genericParseJSON defaultOptions
255+
256+
incoherentInstancesNeededToJSON :: ToJSON a => IncoherentInstancesNeeded a -> Value
257+
incoherentInstancesNeededToJSON = case () of
258+
_ | True -> $(mkToJSON defaultOptions ''IncoherentInstancesNeeded)
259+
| False -> genericToJSON defaultOptions
255260
#endif
256261

257262
-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)