@@ -21,12 +21,12 @@
2121--
2222-- @
2323-- "hello" :> ReqBody String :> Put ()
24−-- :<|> "hello" :> Capture "p" Int :> ReqBody String :> Post ()
25−-- :<|> "hello" :> QueryParam "name" String :> Get Int
24+-- :\<|> "hello" :> Capture "p" Int :> ReqBody String :> Post ()
25+-- :\<|> "hello" :> QueryParam "name" String :> Get Int
2626-- @
2727--
28−-- Note the '/' before a 'QueryParam'!
29−module Servant.Utils.ApiQuasiQuoting where
28+-- Note the @/@ before a @QueryParam@!
29+module Servant.QQ where
3030
3131import Control.Monad (void)
3232import Control.Applicative hiding (many, (<|>), optional)
@@ -177,18 +177,14 @@ parseAll = do
177177-- | The sitemap QuasiQuoter.
178178--
179179-- * @.../<var>:<type>/...@ becomes a capture
180−--
181180-- * @.../?<var>:<type>@ becomes a query parameter
182−--
183181-- * @<method> ... <typ>@ becomes a method returning @<typ>@
184−--
185182-- * @<method> ... <typ1> -> <typ2>@ becomes a method with request
186183-- body of @<typ1>@ and returning @<typ2>@
187184--
188185-- Comments are allowed, and have the standard Haskell format
189186--
190187-- * @--@ for inline
191−--
192188-- * @{- ... -}@ for block
193189--
194190sitemap :: QuasiQuoter