@@ -1,4 +1,3 @@
2{-# LANGUAGE DataKinds #-}
1{-# LANGUAGE DataKinds #-}
3{-# LANGUAGE FlexibleContexts #-}
2{-# LANGUAGE FlexibleContexts #-}
4{-# LANGUAGE GADTs #-}
3{-# LANGUAGE GADTs #-}
@@ -139,15 +138,7 @@ sopSwaggerGenericToJSON'
139 -> DatatypeInfo '[xs]
138 -> DatatypeInfo '[xs]
140 -> POP Maybe '[xs]
139 -> POP Maybe '[xs]
141 -> [Pair]
140 -> [Pair]
142−sopSwaggerGenericToJSON'
145−#if MIN_VERSION_generics_sop(0,5,0)
146− (ADT _ _ (Record _ fieldsInfo :* Nil) _)
141+sopSwaggerGenericToJSON' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil) _) (POP (defs :* Nil)) =
148− (ADT _ _ (Record _ fieldsInfo :* Nil))
150− (POP (defs :* Nil)) =
151 sopSwaggerGenericToJSON'' opts fields fieldsInfo defs
142 sopSwaggerGenericToJSON'' opts fields fieldsInfo defs
152sopSwaggerGenericToJSON' _ _ _ _ = error "sopSwaggerGenericToJSON: unsupported type"
143sopSwaggerGenericToJSON' _ _ _ _ = error "sopSwaggerGenericToJSON: unsupported type"
@@ -220,15 +211,7 @@ sopSwaggerGenericParseJSON'
220 -> DatatypeInfo '[xs]
211 -> DatatypeInfo '[xs]
221 -> POP Maybe '[xs]
212 -> POP Maybe '[xs]
222 -> Parser (SOP I '[xs])
213 -> Parser (SOP I '[xs])
223−sopSwaggerGenericParseJSON'
214+sopSwaggerGenericParseJSON' opts obj (ADT _ _ (Record _ fieldsInfo :* Nil) _) (POP (defs :* Nil)) =
226−#if MIN_VERSION_generics_sop(0,5,0)
227− (ADT _ _ (Record _ fieldsInfo :* Nil) _)
229− (ADT _ _ (Record _ fieldsInfo :* Nil))
231− (POP (defs :* Nil)) =
232 SOP . Z <$> sopSwaggerGenericParseJSON'' opts obj fieldsInfo defs
215 SOP . Z <$> sopSwaggerGenericParseJSON'' opts obj fieldsInfo defs
233sopSwaggerGenericParseJSON' _ _ _ _ = error "sopSwaggerGenericParseJSON: unsupported type"
216sopSwaggerGenericParseJSON' _ _ _ _ = error "sopSwaggerGenericParseJSON: unsupported type"
@@ -295,15 +278,7 @@ sopSwaggerGenericToEncoding'
295 -> DatatypeInfo '[xs]
278 -> DatatypeInfo '[xs]
296 -> POP Maybe '[xs]
279 -> POP Maybe '[xs]
297 -> Series
280 -> Series
298−sopSwaggerGenericToEncoding'
281+sopSwaggerGenericToEncoding' opts (SOP (Z fields)) (ADT _ _ (Record _ fieldsInfo :* Nil) _) (POP (defs :* Nil)) =
301−#if MIN_VERSION_generics_sop(0,5,0)
302− (ADT _ _ (Record _ fieldsInfo :* Nil) _)
304− (ADT _ _ (Record _ fieldsInfo :* Nil))
306− (POP (defs :* Nil)) =
307 sopSwaggerGenericToEncoding'' opts fields fieldsInfo defs
282 sopSwaggerGenericToEncoding'' opts fields fieldsInfo defs
308sopSwaggerGenericToEncoding' _ _ _ _ = error "sopSwaggerGenericToEncoding: unsupported type"
283sopSwaggerGenericToEncoding' _ _ _ _ = error "sopSwaggerGenericToEncoding: unsupported type"