git.iko.soy/typeable/postgresql-simple
on master help sign in
Documentation tweaks

Move type annotation to a slightly more idiomatic position, and highlight connectPostgreSQL which in my opinion should generally be preferred to connect.

commitec5ab5f2d22c5593cd10c9d8b6851161f16355f9 authorLeon P Smith <leon@melding-monads.com> dateTue 27 May 2014, 23:19 (12 years ago) parent1d65029
1 file changed+3−2
src/Database/PostgreSQL/Simple.hs+3−2
src/Database/PostgreSQL/Simple.hs+3−2
@@ -697,9 +697,10 @@ fmtError msg q xs = throw FormatError {
697697-- >
698698-- > import Database.PostgreSQL.Simple
699699-- >
700+-- > hello :: IO [Only Int]
700701-- > hello = do
701−-- > conn <- connect defaultConnectInfo
702−-- > query_ conn "select 2 + 2" :: IO [Only Int]
702+-- > conn <- connectPostgreSQL ""
703+-- > query_ conn "select 2 + 2"
703704--
704705-- A 'Query' value does not represent the actual query that will be
705706-- executed, but is a template for constructing the final query.