ContentTypes: Add constraints
GHC 8.0 seems to want these.
This commit is contained in:
parent
3467eba44f
commit
c6e51260f0
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ class (AllMime list) => AllCTRender (list :: [*]) a where
|
||||||
handleAcceptH :: Proxy list -> AcceptHeader -> a -> Maybe (ByteString, ByteString)
|
handleAcceptH :: Proxy list -> AcceptHeader -> a -> Maybe (ByteString, ByteString)
|
||||||
|
|
||||||
instance OVERLAPPABLE_
|
instance OVERLAPPABLE_
|
||||||
(AllMimeRender (ct ': cts) a) => AllCTRender (ct ': cts) a where
|
(Accept ct, AllMime cts, AllMimeRender (ct ': cts) a) => AllCTRender (ct ': cts) a where
|
||||||
handleAcceptH _ (AcceptHeader accept) val = M.mapAcceptMedia lkup accept
|
handleAcceptH _ (AcceptHeader accept) val = M.mapAcceptMedia lkup accept
|
||||||
where pctyps = Proxy :: Proxy (ct ': cts)
|
where pctyps = Proxy :: Proxy (ct ': cts)
|
||||||
amrs = allMimeRender pctyps val
|
amrs = allMimeRender pctyps val
|
||||||
|
|
Loading…
Reference in a new issue