@@ -21,12 +21,12 @@
23-- "hello" :> ReqBody String :> Put ()
23-- "hello" :> ReqBody String :> Put ()
24−-- :<|> "hello" :> Capture "p" Int :> ReqBody String :> Post ()
24+-- :\<|> "hello" :> Capture "p" Int :> ReqBody String :> Post ()
25−-- :<|> "hello" :> QueryParam "name" String :> Get Int
25+-- :\<|> "hello" :> QueryParam "name" String :> Get Int
28−-- Note the '/' before a 'QueryParam'!
28+-- Note the @/@ before a @QueryParam@!
29−module Servant.Utils.ApiQuasiQuoting where
29+module Servant.QQ where
31import Control.Monad (void)
31import Control.Monad (void)
32import Control.Applicative hiding (many, (<|>), optional)
32import Control.Applicative hiding (many, (<|>), optional)
@@ -177,18 +177,14 @@ parseAll = do
177-- | The sitemap QuasiQuoter.
177-- | The sitemap QuasiQuoter.
179-- * @.../<var>:<type>/...@ becomes a capture
179-- * @.../<var>:<type>/...@ becomes a capture
181-- * @.../?<var>:<type>@ becomes a query parameter
180-- * @.../?<var>:<type>@ becomes a query parameter
183-- * @<method> ... <typ>@ becomes a method returning @<typ>@
181-- * @<method> ... <typ>@ becomes a method returning @<typ>@
185-- * @<method> ... <typ1> -> <typ2>@ becomes a method with request
182-- * @<method> ... <typ1> -> <typ2>@ becomes a method with request
186-- body of @<typ1>@ and returning @<typ2>@
183-- body of @<typ1>@ and returning @<typ2>@
188-- Comments are allowed, and have the standard Haskell format
185-- Comments are allowed, and have the standard Haskell format
190-- * @--@ for inline
187-- * @--@ for inline
192-- * @{- ... -}@ for block
188-- * @{- ... -}@ for block
194sitemap :: QuasiQuoter
190sitemap :: QuasiQuoter