I am not quite sure how to use the postgresqlConnect
function in module Database.HaskellDB.HDBC.PostgreSQL
to connect to a PostgreSQL database. The Haddock documentation page only states the type signature:
postgresqlConnect :: MonadIO m => [(String, String)] -> (Database -> m a) -> m a
What is a
supposed to be?
How do I connect to a PostgreSQL server with postgresqlConnect
?