Fix example MimeRender
instance
The `MimeRender` instance in the documentation was incomplete and expected one more argument.
This commit is contained in:
parent
3c27ff5a32
commit
d81e15b5e5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue