git.iko.soy/typeable/servant
on master help sign in
ContentTypes: Add constraints

GHC 8.0 seems to want these.

commitc6e51260f0780428a9b770d41f24bf1570ae2277 authorBen Gamari <ben@smart-cactus.org> dateSat 20 Feb 2016, 13:37 (11 years ago) parent3467eba
1 file changed+1−1
servant/src/Servant/API/ContentTypes.hs+1−1
servant/src/Servant/API/ContentTypes.hs+1−1
@@ -170,7 +170,7 @@ class (AllMime list) => AllCTRender (list :: [*]) a where
170170 handleAcceptH :: Proxy list -> AcceptHeader -> a -> Maybe (ByteString, ByteString)
171171
172172instance 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