git.iko.soy/typeable/postgresql-simple
on master help sign in
Update documentation in SqlQQ module
commit8b16055023c9bd155f13f441348738bfeff1be0e authorLeon P Smith <leon@melding-monads.com> dateThu 26 Feb 2015, 09:06 (12 years ago) parentc4d4eca
1 file changed+5−5
src/Database/PostgreSQL/Simple/SqlQQ.hs+5−5
src/Database/PostgreSQL/Simple/SqlQQ.hs+5−5
@@ -19,7 +19,7 @@ import Data.String
1919-- | 'sql' is a quasiquoter that eases the syntactic burden
2020-- of writing big sql statements in Haskell source code. For example:
2121--
22−-- > {-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
22+-- > {-# LANGUAGE QuasiQuotes #-}
2323-- >
2424-- > query conn [sql| SELECT column_a, column_b
2525-- > FROM table1 NATURAL JOIN table2
@@ -29,10 +29,10 @@ import Data.String
2929-- > LIMIT 100 |]
3030-- > (beginTime,endTime,string)
3131--
32−-- This quasiquoter attempts to mimimize whitespace; otherwise the
33−-- above query would consist of approximately half whitespace when sent
34−-- to the database backend. It also recognizes and strips out standard
35−-- sql comments "--".
32+-- This quasiquoter returns a literal string expression of type 'Query',
33+-- and attempts to mimimize whitespace; otherwise the above query would
34+-- consist of approximately half whitespace when sent to the database
35+-- backend. It also recognizes and strips out standard sql comments "--".
3636--
3737-- The implementation of the whitespace reducer is currently incomplete.
3838-- Thus it can mess up your syntax in cases where whitespace should be