Fix example `MimeRender` instance
The `MimeRender` instance in the documentation was incomplete and expected one more argument.
commitd81e15b5e5a718e250242e5e8ca841f4a5554dcc
authorErlend Hamberg <erlend@hamberg.no>
dateTue 14 Jun 2016, 14:20 (10 years ago)
parent3c27ff5
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