Download & Install
HaskellDB is available on Hackage at http://hackage.haskell.org/package/haskelldb. You can install it using the cabal tool:
> cabal install haskelldb
It compiles with the GHC 6.12. Older versions and other compilers may or may not work.
Databases supported
HaskellDB works with the HDBC driver suite. It previously had support for the HSQL suite, but that code is no longer maintained.
Using the HDBC drivers
HaskellDB works with the 2.0 HDBC drivers. First, install HDBC and haskelldb-hdbc using cabal:
> cabal install hdbc > cabal install haskelldb-hdbc
Then, install the driver for your particular database.
Postgres
haskelldb-hdbc-postgres can be installed with cabal:
> cabal install haskelldb-hdbc-postgresql
ODBC (MySQL, SQL Server)
haskelldb-hdbc-odbc can installed with cabal:
> cabal install haskelldb-hdbc-odbc
SqlLite
haskelldb-hdbc-sqlite3 can installed with cabal:
> cabal install haskelldb-hdbc-sqlite3
MySql
The mysql driver on hackage is not documented on this wiki. Contact the author for more information.
Using with HSQL drivers
The HSQL drivers are unmaintained and currently unsupported. Volunteers welcome!
