[Haskell-cafe] database access recommendation

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Thu Apr 27 12:17:53 EDT 2006


On Thu, 2006-04-27 at 10:45 -0500, Brock Peabody wrote:
> I'm teaching myself Haskell, and was wondering if anyone could recommend
> a library for accessing databases, PostgreSQL in particular.
> 
> I looked at http://www.haskell.org/haskellwiki/Libraries_and_tools, and
> HSQL looked promising, but I can't get it to install on Windows or
> FreeBSD, with Hugs or GHC.  According to the FreeBSD ports system, it is
> marked as broken.

There is also HDBC which is nearing a 1.0 release and in my experience
is easier to install. (I package both HSQL & HDBC for Gentoo)

http://quux.org/devel/hdbc/

In particular you'll want:
http://quux.org/devel/hdbc/hdbc_0.99.2.tar.gz

and the PostgreSQL backend:
http://quux.org/devel/hdbc/hdbc-postgresql_0.99.2.1.tar.gz

API docs:
http://darcs.complete.org/hdbc/doc/Database-HDBC.html


Duncan



More information about the Haskell-Cafe mailing list