@@ -84,47 +84,45 @@ gNullaryParseJSONObjectWithSingleField = genericParseJSON optsObjectWithSingleFi
84-- SomeType encoders/decoders
84-- SomeType encoders/decoders
85--------------------------------------------------------------------------------
85--------------------------------------------------------------------------------
87−type SomeTypeToJSON = SomeType Int -> Value
89−thSomeTypeToJSON2ElemArray :: ToJSON a => SomeType a -> Value
87+thSomeTypeToJSON2ElemArray :: SomeType Int -> Value
90thSomeTypeToJSON2ElemArray = $(mkToJSON opts2ElemArray ''SomeType)
88thSomeTypeToJSON2ElemArray = $(mkToJSON opts2ElemArray ''SomeType)
92−thSomeTypeParseJSON2ElemArray :: FromJSON a => Value -> Parser (SomeType a)
90+thSomeTypeParseJSON2ElemArray :: Value -> Parser (SomeType Int)
93thSomeTypeParseJSON2ElemArray = $(mkParseJSON opts2ElemArray ''SomeType)
91thSomeTypeParseJSON2ElemArray = $(mkParseJSON opts2ElemArray ''SomeType)
96−thSomeTypeToJSONTaggedObject :: ToJSON a => SomeType a -> Value
94+thSomeTypeToJSONTaggedObject :: SomeType Int -> Value
97thSomeTypeToJSONTaggedObject = $(mkToJSON optsTaggedObject ''SomeType)
95thSomeTypeToJSONTaggedObject = $(mkToJSON optsTaggedObject ''SomeType)
99−thSomeTypeParseJSONTaggedObject :: FromJSON a => Value -> Parser (SomeType a)
97+thSomeTypeParseJSONTaggedObject :: Value -> Parser (SomeType Int)
100thSomeTypeParseJSONTaggedObject = $(mkParseJSON optsTaggedObject ''SomeType)
98thSomeTypeParseJSONTaggedObject = $(mkParseJSON optsTaggedObject ''SomeType)
103−thSomeTypeToJSONObjectWithSingleField :: ToJSON a => SomeType a -> Value
101+thSomeTypeToJSONObjectWithSingleField :: SomeType Int -> Value
104thSomeTypeToJSONObjectWithSingleField = $(mkToJSON optsObjectWithSingleField ''SomeType)
102thSomeTypeToJSONObjectWithSingleField = $(mkToJSON optsObjectWithSingleField ''SomeType)
106−thSomeTypeParseJSONObjectWithSingleField :: FromJSON a => Value -> Parser (SomeType a)
104+thSomeTypeParseJSONObjectWithSingleField :: Value -> Parser (SomeType Int)
107thSomeTypeParseJSONObjectWithSingleField = $(mkParseJSON optsObjectWithSingleField ''SomeType)
105thSomeTypeParseJSONObjectWithSingleField = $(mkParseJSON optsObjectWithSingleField ''SomeType)
110−gSomeTypeToJSON2ElemArray :: ToJSON a => SomeType a -> Value
108+gSomeTypeToJSON2ElemArray :: SomeType Int -> Value
111gSomeTypeToJSON2ElemArray = genericToJSON opts2ElemArray
109gSomeTypeToJSON2ElemArray = genericToJSON opts2ElemArray
113−gSomeTypeParseJSON2ElemArray :: FromJSON a => Value -> Parser (SomeType a)
111+gSomeTypeParseJSON2ElemArray :: Value -> Parser (SomeType Int)
114gSomeTypeParseJSON2ElemArray = genericParseJSON opts2ElemArray
112gSomeTypeParseJSON2ElemArray = genericParseJSON opts2ElemArray
117−gSomeTypeToJSONTaggedObject :: ToJSON a => SomeType a -> Value
115+gSomeTypeToJSONTaggedObject :: SomeType Int -> Value
118gSomeTypeToJSONTaggedObject = genericToJSON optsTaggedObject
116gSomeTypeToJSONTaggedObject = genericToJSON optsTaggedObject
120−gSomeTypeParseJSONTaggedObject :: FromJSON a => Value -> Parser (SomeType a)
118+gSomeTypeParseJSONTaggedObject :: Value -> Parser (SomeType Int)
121gSomeTypeParseJSONTaggedObject = genericParseJSON optsTaggedObject
119gSomeTypeParseJSONTaggedObject = genericParseJSON optsTaggedObject
124−gSomeTypeToJSONObjectWithSingleField :: ToJSON a => SomeType a -> Value
122+gSomeTypeToJSONObjectWithSingleField :: SomeType Int -> Value
125gSomeTypeToJSONObjectWithSingleField = genericToJSON optsObjectWithSingleField
123gSomeTypeToJSONObjectWithSingleField = genericToJSON optsObjectWithSingleField
127−gSomeTypeParseJSONObjectWithSingleField :: FromJSON a => Value -> Parser (SomeType a)
125+gSomeTypeParseJSONObjectWithSingleField :: Value -> Parser (SomeType Int)
128gSomeTypeParseJSONObjectWithSingleField = genericParseJSON optsObjectWithSingleField
126gSomeTypeParseJSONObjectWithSingleField = genericParseJSON optsObjectWithSingleField