[Haskell-cafe] HDBC or HSQL

George Moschovitis george.moschovitis at gmail.com
Thu Jul 26 03:09:41 EDT 2007


>
> Ok, I am evaluating HDBC. I wrote a simple test program:
> ...
> Can I get a more specific error? Is there a way to inspect this exception
> more deeply?
>

handleSqlError does the trick, for other newbies:

main =
  handleSqlError $
  do
    dbc <- connectPostgreSQL "dbname=test user=postgres password=,psql51e"
    putStrLn "done"

Everything works ok now, I cann access my psql database and run basic sql
queries/updates.

-g.

-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070726/be351828/attachment.htm


More information about the Haskell-Cafe mailing list