IreneKnapp/direct-sqlite — pull request #7 by joeyadams (2012-08-16 08:44:07+00:00)
Title: Improve internal type safety, and import GHCi fix from persistent-sqlite

This pull request changes a lot internally, but should not cause any external breakage. It's mostly improvements to internal typing. However, the last commit is a hack imported from persistent-sqlite so direct-sqlite can be used with GHCi.

Here are all the user-facing changes I'm aware of:

* Error constructors now have documentation (copied from [SQLite documentation][1]).

* direct-sqlite can now be used with GHCi on 64-bit Linux (I haven't tested it anywhere else yet)

* If the SQLite3 API returns an unrecognized result code, it is reported with `Prelude.error` instead of a non-exhaustive pattern match error.

* direct-sqlite now needs the EmptyDataDecls extension (internally).

* sqlite3.h is bundled, too, meaning the tarball will be slightly bigger.

[1]: http://www.sqlite.org/c3ref/c_abort.html