Fix example MimeRender instance

The  `MimeRender` instance in the documentation was incomplete and expected one more argument.
This commit is contained in:
Erlend Hamberg 2016-06-14 14:20:35 +02:00 committed by GitHub
parent 3c27ff5a32
commit d81e15b5e5

View file

@ -154,7 +154,7 @@ newtype AcceptHeader = AcceptHeader BS.ByteString
-- > instance Accept MyContentType where
-- > contentType _ = "example" // "prs.me.mine" /: ("charset", "utf-8")
-- >
-- > instance Show a => MimeRender MyContentType where
-- > instance Show a => MimeRender MyContentType a where
-- > mimeRender _ val = pack ("This is MINE! " ++ show val)
-- >
-- > type MyAPI = "path" :> Get '[MyContentType] Int