Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Created December 12, 2022 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/f4025f0d06d685f3f2104a6c65b5a7ad to your computer and use it in GitHub Desktop.
Save dminuoso/f4025f0d06d685f3f2104a6c65b5a7ad to your computer and use it in GitHub Desktop.
freyja-api-swagger-lib/Data/Swagger/Deriving.hs:43:10: error:
• Could not deduce (Typeable t)
arising from the superclasses of an instance declaration
from the context: (SwaggerOptions t, Generic a, GToSchema (Rep a))
bound by the instance declaration
at freyja-api-swagger-lib/Data/Swagger/Deriving.hs:43:10-88
Possible fix:
add (Typeable t) to the context of the instance declaration
• In the instance declaration for ‘ToSchema (CustomSchema t a)’
|
43 | instance (SwaggerOptions t, Generic a, GToSchema (Rep a)) => ToSchema (CustomSchema t a) where
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment