well-typed / grapesy

Native Haskell gRPC client and server based on `http2`
Other
31 stars 4 forks source link

Disable orphan warnings when declaring metadata #128

Closed edsko closed 2 months ago

edsko commented 2 months ago

Metadata instances are declared with something like

type instance RequestMetadata          (Protobuf Greeter meth) = NoMetadata
type instance ResponseInitialMetadata  (Protobuf Greeter meth) = GreeterResponseInitialMetadata meth
type instance ResponseTrailingMetadata (Protobuf Greeter meth) = NoMetadata

In ghc 9.8 this results in orphan warnings. This is somewhat unfortunate, but for now we simply disable these warnings.