on master help sign in
Test incoherent instances for ToJSON
commit368dcf2c39c41f0bfcd9fae2f6a15394930021b7 authorlyxia <lysxia@gmail.com> dateThu 3 Aug 2017, 00:37 (9 years ago) parent7dacc60
1 file changed+5
tests/Encoders.hs+5
tests/Encoders.hs+5
@@ -252,6 +252,11 @@ incoherentInstancesNeededParseJSONString :: FromJSON a => Value -> Parser (Incoh
252252incoherentInstancesNeededParseJSONString = 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-------------------------------------------------------------------------------