Closed
Description
Preamble:
class Monoid doc => HasObject doc ndoc | doc -> ndoc, ndoc -> doc where
instance HasObject SwaggerDoc NamedSwaggerDoc where
object ::
HasObject doc doc' =>
Text ->
SchemaP doc A.Object [A.Pair] a b ->
SchemaP doc' A.Value A.Value a b
class ToSchema a where
schema :: ValueSchema NamedSwaggerDoc A.Value A.Value a a
if we check in the context of this:
instance ToSchema Rec where
schema = [wingman| use object
, use undefined
|]
we get a hole ⊢ SchemaP doc Object [Pair] Rec Rec
but this should actually be SchemaP SwaggerDoc Object [Pair] Rec Rec
as per the fundep.