We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3467eba commit c6e5126Copy full SHA for c6e5126
servant/src/Servant/API/ContentTypes.hs
@@ -170,7 +170,7 @@ class (AllMime list) => AllCTRender (list :: [*]) a where
170
handleAcceptH :: Proxy list -> AcceptHeader -> a -> Maybe (ByteString, ByteString)
171
172
instance OVERLAPPABLE_
173
- (AllMimeRender (ct ': cts) a) => AllCTRender (ct ': cts) a where
+ (Accept ct, AllMime cts, AllMimeRender (ct ': cts) a) => AllCTRender (ct ': cts) a where
174
handleAcceptH _ (AcceptHeader accept) val = M.mapAcceptMedia lkup accept
175
where pctyps = Proxy :: Proxy (ct ': cts)
176
amrs = allMimeRender pctyps val
0 commit comments