@@ -28,21 +28,39 @@
2828-- Note the @/@ before a @QueryParam@!
2929module Servant.QQ (sitemap) where
3030
31−import Control.Monad (void)
32−import Control.Applicative hiding (many, (<|>), optional)
33−import Language.Haskell.TH.Quote
31+import Control.Monad ( void )
32+import Control.Applicative ( (<$>) )
33+import Language.Haskell.TH.Quote ( QuasiQuoter(..) )
3434import Language.Haskell.TH
35+ ( mkName, Type(AppT, ConT, LitT), TyLit(StrTyLit) )
3536import Text.ParserCombinators.Parsec
36−
37−import Servant.API.Capture
38−import Servant.API.Get
39−import Servant.API.Post
40−import Servant.API.Put
41−import Servant.API.Delete
42−import Servant.API.QueryParam
43−import Servant.API.ReqBody
44−import Servant.API.Sub
45−import Servant.API.Alternative
37+ ( try,
38+ Parser,
39+ manyTill,
40+ endBy,
41+ sepBy1,
42+ optional,
43+ optionMaybe,
44+ string,
45+ anyChar,
46+ char,
47+ spaces,
48+ noneOf,
49+ parse,
50+ skipMany,
51+ many,
52+ lookAhead,
53+ (<|>),
54+ (<?>) )
55+import Servant.API.Capture ( Capture )
56+import Servant.API.Get ( Get )
57+import Servant.API.Post ( Post )
58+import Servant.API.Put ( Put )
59+import Servant.API.Delete ( Delete )
60+import Servant.API.QueryParam ( QueryParam )
61+import Servant.API.ReqBody ( ReqBody )
62+import Servant.API.Sub ( (:>) )
63+import Servant.API.Alternative ( (:<|>) )
4664
4765-- | Finally-tagless encoding for our DSL.
4866-- Keeping 'repr'' and 'repr' distinct when writing functions with an
@@ -195,4 +213,3 @@ sitemap = QuasiQuoter { quoteExp = undefined
195213 Right st -> return st
196214 , quoteDec = undefined
197215 }
198−