@@ -144,7 +144,11 @@ sopSwaggerGenericToJSON'
144 -> DatatypeInfo '[xs]
144 -> DatatypeInfo '[xs]
145 -> POP Maybe '[xs]
145 -> POP Maybe '[xs]
146 -> [Pair]
146 -> [Pair]
147+#if MIN_VERSION_generics_sop(0,5,0)
148+sopSwaggerGenericToJSON' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil) _) (POP (defs :* Nil)) =
147sopSwaggerGenericToJSON' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil)) (POP (defs :* Nil)) =
150sopSwaggerGenericToJSON' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil)) (POP (defs :* Nil)) =
148 sopSwaggerGenericToJSON'' opts fields fieldsInfo defs
152 sopSwaggerGenericToJSON'' opts fields fieldsInfo defs
149sopSwaggerGenericToJSON' _ _ _ _ = error "sopSwaggerGenericToJSON: unsupported type"
153sopSwaggerGenericToJSON' _ _ _ _ = error "sopSwaggerGenericToJSON: unsupported type"
@@ -220,7 +224,11 @@ sopSwaggerGenericParseJSON'
220 -> DatatypeInfo '[xs]
224 -> DatatypeInfo '[xs]
221 -> POP Maybe '[xs]
225 -> POP Maybe '[xs]
222 -> Parser (SOP I '[xs])
226 -> Parser (SOP I '[xs])
227+#if MIN_VERSION_generics_sop(0,5,0)
228+sopSwaggerGenericParseJSON' opts obj (ADT _ _ (Record _ fieldsInfo :* Nil) _) (POP (defs :* Nil)) =
223sopSwaggerGenericParseJSON' opts obj (ADT _ _ (Record _ fieldsInfo :* Nil)) (POP (defs :* Nil)) =
230sopSwaggerGenericParseJSON' opts obj (ADT _ _ (Record _ fieldsInfo :* Nil)) (POP (defs :* Nil)) =
224 SOP . Z <$> sopSwaggerGenericParseJSON'' opts obj fieldsInfo defs
232 SOP . Z <$> sopSwaggerGenericParseJSON'' opts obj fieldsInfo defs
225sopSwaggerGenericParseJSON' _ _ _ _ = error "sopSwaggerGenericParseJSON: unsupported type"
233sopSwaggerGenericParseJSON' _ _ _ _ = error "sopSwaggerGenericParseJSON: unsupported type"
@@ -292,7 +300,11 @@ sopSwaggerGenericToEncoding'
292 -> DatatypeInfo '[xs]
300 -> DatatypeInfo '[xs]
293 -> POP Maybe '[xs]
301 -> POP Maybe '[xs]
294 -> Series
302 -> Series
303+#if MIN_VERSION_generics_sop(0,5,0)
304+sopSwaggerGenericToEncoding' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil) _) (POP (defs :* Nil)) =
295sopSwaggerGenericToEncoding' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil)) (POP (defs :* Nil)) =
306sopSwaggerGenericToEncoding' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil)) (POP (defs :* Nil)) =
296 sopSwaggerGenericToEncoding'' opts fields fieldsInfo defs
308 sopSwaggerGenericToEncoding'' opts fields fieldsInfo defs
297sopSwaggerGenericToEncoding' _ _ _ _ = error "sopSwaggerGenericToEncoding: unsupported type"
309sopSwaggerGenericToEncoding' _ _ _ _ = error "sopSwaggerGenericToEncoding: unsupported type"