Skip to content

Commit c6e5126

Browse files
committed
ContentTypes: Add constraints
GHC 8.0 seems to want these.
1 parent 3467eba commit c6e5126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servant/src/Servant/API/ContentTypes.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class (AllMime list) => AllCTRender (list :: [*]) a where
170170
handleAcceptH :: Proxy list -> AcceptHeader -> a -> Maybe (ByteString, ByteString)
171171

172172
instance OVERLAPPABLE_
173-
(AllMimeRender (ct ': cts) a) => AllCTRender (ct ': cts) a where
173+
(Accept ct, AllMime cts, AllMimeRender (ct ': cts) a) => AllCTRender (ct ': cts) a where
174174
handleAcceptH _ (AcceptHeader accept) val = M.mapAcceptMedia lkup accept
175175
where pctyps = Proxy :: Proxy (ct ': cts)
176176
amrs = allMimeRender pctyps val

0 commit comments

Comments
 (0)