git.iko.soy/typeable/postgresql-simple
on master help sign in
Update documentation in SqlQQ module
8b16055Leon P Smith
src/Database/PostgreSQL/Simple/SqlQQ.hs+5−5
@@ -19,7 +19,7 @@ import Data.String
19-- | 'sql' is a quasiquoter that eases the syntactic burden
19-- | 'sql' is a quasiquoter that eases the syntactic burden
20-- of writing big sql statements in Haskell source code. For example:
20-- of writing big sql statements in Haskell source code. For example:
21--
21--
22−-- > {-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
22+-- > {-# LANGUAGE QuasiQuotes #-}
23-- >
23-- >
24-- > query conn [sql| SELECT column_a, column_b
24-- > query conn [sql| SELECT column_a, column_b
25-- > FROM table1 NATURAL JOIN table2
25-- > FROM table1 NATURAL JOIN table2
@@ -29,10 +29,10 @@ import Data.String
29-- > LIMIT 100 |]
29-- > LIMIT 100 |]
30-- > (beginTime,endTime,string)
30-- > (beginTime,endTime,string)
31--
31--
32+-- This quasiquoter returns a literal string expression of type 'Query',
32−-- This quasiquoter attempts to mimimize whitespace; otherwise the
33+-- and attempts to mimimize whitespace; otherwise the above query would
33−-- above query would consist of approximately half whitespace when sent
34+-- consist of approximately half whitespace when sent to the database
34−-- to the database backend. It also recognizes and strips out standard
35+-- backend. It also recognizes and strips out standard sql comments "--".
35−-- sql comments "--".
36--
36--
37-- The implementation of the whitespace reducer is currently incomplete.
37-- The implementation of the whitespace reducer is currently incomplete.
38-- Thus it can mess up your syntax in cases where whitespace should be
38-- Thus it can mess up your syntax in cases where whitespace should be