title: How do I use postgresqlConnect in the Database.HaskellDB.HDBC.PostgreSQL module?
body: <p>I am not quite sure how to use the <code>postgresqlConnect</code> function in module <code>Database.HaskellDB.HDBC.PostgreSQL</code> to connect to a PostgreSQL database. <a href="http://hackage.haskell.org/packages/archive/haskelldb-hdbc-postgresql/2.1.0/doc/html/Database-HaskellDB-HDBC-PostgreSQL.html" rel="nofollow">The Haddock documentation page</a> only states the type signature:</p>
  
  <pre><code>postgresqlConnect :: MonadIO m =&gt; [(String, String)] -&gt; (Database -&gt; m a) -&gt; m a
  </code></pre>
  
  <p>What is <code>a</code> supposed to be?</p>
  
  <p>How do I connect to a PostgreSQL server with <code>postgresqlConnect</code>?</p>