@@ -30,6 +30,7 @@
3030-- > {-# LANGUAGE OverloadedStrings #-}
3131-- > {-# LANGUAGE TypeOperators #-}
3232-- > {-# OPTIONS_GHC -fno-warn-orphans #-}
33+-- > import Control.Lens
3334-- > import Data.Aeson
3435-- > import Data.Proxy
3536-- > import Data.String.Conversions
@@ -51,7 +52,7 @@
5152-- >
5253-- > -- | We can also implement 'MimeRender' for additional formats like 'PlainText'.
5354-- > instance MimeRender PlainText Greet where
54−-- > toByteString Proxy (Greet s) = "\"" <> cs s <> "\""
55+-- > mimeRender Proxy (Greet s) = "\"" <> cs s <> "\""
5556-- >
5657-- > -- We add some useful annotations to our captures,
5758-- > -- query parameters and request body to make the docs
@@ -111,7 +112,7 @@
111112-- > :<|> "greet" :> ReqBody '[JSON] Greet :> Post '[JSON] Greet
112113-- >
113114-- > -- DELETE /greet/:greetid
114−-- > :<|> "greet" :> Capture "greetid" Text :> Delete
115+-- > :<|> "greet" :> Capture "greetid" Text :> Delete '[JSON] ()
115116-- >
116117-- > testApi :: Proxy TestApi
117118-- > testApi = Proxy
@@ -121,7 +122,7 @@
121122-- > -- notes.
122123-- > extra :: ExtraInfo TestApi
123124-- > extra =
124−-- > extraInfo (Proxy :: Proxy ("greet" :> Capture "greetid" Text :> Delete)) $
125+-- > extraInfo (Proxy :: Proxy ("greet" :> Capture "greetid" Text :> Delete '[JSON] ())) $
125126-- > defAction & headers <>~ ["unicorns"]
126127-- > & notes <>~ [ DocNote "Title" ["This is some text"]
127128-- > , DocNote "Second secton" ["And some more"]