Small tweaks for servant-server

This commit is contained in:
Julian K. Arni 2015-02-19 19:18:08 +01:00
parent 5e4297a135
commit ebc266022c
2 changed files with 3 additions and 2 deletions

View file

@ -47,7 +47,8 @@ module Servant.API (
import Servant.API.Alternative ( (:<|>)(..) )
import Servant.API.Capture ( Capture )
import Servant.API.ContentTypes ( HTML, XML, JSON, JavaScript, CSS
, PlainText, OctetStream )
, PlainText, OctetStream, MimeRender(..)
, MimeUnrender(..))
import Servant.API.Delete ( Delete )
import Servant.API.Get ( Get )
import Servant.API.Header ( Header )

View file

@ -110,7 +110,7 @@ instance ( AllMimeRender ctyps a, IsNonEmpty ctyps
class Accept ctype => MimeUnrender ctype a where
fromByteString :: Proxy ctype -> ByteString -> Either String a
class AllCTUnrender list a where
class (IsNonEmpty list) => AllCTUnrender list a where
handleCTypeH :: Proxy list
-> ByteString -- Content-Type header
-> ByteString -- Request body