Skip to content
m4dc4p edited this page Oct 23, 2012 · 7 revisions

HaskellDB compiles and executes SQL statements for you. You write your queries using operators and functions based on the "relational algebra." HaskellDB turns those into real SQL for you.

Rails 3.0 recently adopted "ARel", a library based on the same idea.

Installing HaskellDB

The "Download & Install HaskellDB" article tells you how to get HaskellDB.

Source Code

HaskellDB uses git for version control.

Where to go from Here?

  • How do I connect to my database? -- Examples for connecting to each supported database.

  • Documentation

    • API -- Documentation generated from the source. Click "Database.HaskellDB" on that page.
    • Student Paper: HaskellDB Improved -- The most recent formal write-up on HaskellDB. The examples given remain mostly valid.
    • Domain Specific Embedded Compilers -- The original paper which described HaskellDB. The API has changed significantly since then, so the examples don't really work anymore.
    • Unit Tests -- The unit tests included with HaskellDB show how selects, inserts and updates can be written. The directory contains links to the test harness and database definition. The README describes how to run the tests.
  • Sample Queries -- Check out the "examples" directory in the haskelldb source.

  • Best Practices -- How to best take advantage of HaskellDB.

  • Ask a Question -- Mailing lists and how to get in touch with the maintainer.

  • Submit a Bug or Request a Feature -- I would like discussion of Pull Requests to take place on the HaskellDB users mailing list (https://lists.sourceforge.net/lists/listinfo/haskelldb-users). Please subscribe to the list and post a message with a description of your change and a link to any pull requests.

  • [Volunteer] -- How to get involved.

  • Historical Information -- Information from previous sites, unreliable and not updated.

Clone this wiki locally