Merge pull request #526 from ehamberg/mimerender-doc-fix
Fix example `MimeRender` instance
commit2d8fa20901c4b3eb2fc4dad8528a9966c46effa1
authorJulian Arni <jkarni@gmail.com>
dateFri 1 Jul 2016, 13:45 (10 years ago)
parent3c27ff5d81e15b
servant/src/Servant/API/ContentTypes.hs+1−1
@@ -154,7 +154,7 @@ newtype AcceptHeader = AcceptHeader BS.ByteString
154154-- > instance Accept MyContentType where
155155-- > contentType _ = "example" // "prs.me.mine" /: ("charset", "utf-8")
156156-- >
157−-- > instance Show a => MimeRender MyContentType where
157+-- > instance Show a => MimeRender MyContentType a where
158158-- > mimeRender _ val = pack ("This is MINE! " ++ show val)
159159-- >
160160-- > type MyAPI = "path" :> Get '[MyContentType] Int