@@ -28,21 +28,39 @@
28-- Note the @/@ before a @QueryParam@!
28-- Note the @/@ before a @QueryParam@!
29module Servant.QQ (sitemap) where
29module Servant.QQ (sitemap) where
31−import Control.Monad (void)
31+import Control.Monad ( void )
32−import Control.Applicative hiding (many, (<|>), optional)
32+import Control.Applicative ( (<$>) )
33−import Language.Haskell.TH.Quote
33+import Language.Haskell.TH.Quote ( QuasiQuoter(..) )
34import Language.Haskell.TH
34import Language.Haskell.TH
35+ ( mkName, Type(AppT, ConT, LitT), TyLit(StrTyLit) )
35import Text.ParserCombinators.Parsec
36import Text.ParserCombinators.Parsec
37−import Servant.API.Capture
55+import Servant.API.Capture ( Capture )
38−import Servant.API.Get
56+import Servant.API.Get ( Get )
39−import Servant.API.Post
57+import Servant.API.Post ( Post )
40−import Servant.API.Put
58+import Servant.API.Put ( Put )
41−import Servant.API.Delete
59+import Servant.API.Delete ( Delete )
42−import Servant.API.QueryParam
60+import Servant.API.QueryParam ( QueryParam )
43−import Servant.API.ReqBody
61+import Servant.API.ReqBody ( ReqBody )
44−import Servant.API.Sub
62+import Servant.API.Sub ( (:>) )
45−import Servant.API.Alternative
63+import Servant.API.Alternative ( (:<|>) )
47-- | Finally-tagless encoding for our DSL.
65-- | Finally-tagless encoding for our DSL.
48-- Keeping 'repr'' and 'repr' distinct when writing functions with an
66-- Keeping 'repr'' and 'repr' distinct when writing functions with an
@@ -195,4 +213,3 @@ sitemap = QuasiQuoter { quoteExp = undefined
195 Right st -> return st
213 Right st -> return st
196 , quoteDec = undefined
214 , quoteDec = undefined