Skip to content

chart=2.108.14,image=2.108.14

@pcapriotti pcapriotti tagged this 14 Jun 14:25
There is a slight complication here due to the fact that Empty200 and
Empty404 are used in a `UVerb`, and `UVerb` does not really support the
no content type case.

The solution in this patch is to define an overlapping instance for
`HasServer UVerb` for an empty list of content types.

Also, the combinators in `ErrorDescription` (taken from
`servant-swagger`) have been moved to a new module and reused for the
definition of the `Swagger` instance for a `UVerb` contaning empty
results.
Assets 2
Loading