Fix mimeRender name change
This commit is contained in:
parent
b23b334128
commit
47aeb20c4b
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ instance ToJSON Greet
|
|||
|
||||
-- | We can also implement 'MimeRender' for additional formats like 'PlainText'.
|
||||
instance MimeRender PlainText Greet where
|
||||
toByteString Proxy (Greet s) = "\"" <> cs s <> "\""
|
||||
mimeRender Proxy (Greet s) = "\"" <> cs s <> "\""
|
||||
|
||||
-- We add some useful annotations to our captures,
|
||||
-- query parameters and request body to make the docs
|
||||
|
|
|
@ -56,7 +56,7 @@ instance ToSample Int where
|
|||
toSample = Just 17
|
||||
|
||||
instance MimeRender PlainText Int where
|
||||
toByteString _ = cs . show
|
||||
mimeRender _ = cs . show
|
||||
|
||||
|
||||
type TestApi1 = Get '[JSON, PlainText] Int
|
||||
|
|
Loading…
Reference in a new issue