Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve internal type safety, and import GHCi fix from persistent-sqlite #7

Merged
merged 10 commits into from
Aug 16, 2012

Conversation

joeyadams
Copy link
Contributor

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).
  • 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.

@nurpax
Copy link
Collaborator

nurpax commented Aug 16, 2012

Great change.

@IreneKnapp
Copy link
Owner

This all looks quite solid! I know the feeling of a patch going into the void, so I'm going to do my best to review it rapidly for you, but it is quite a lot to read through. I kinda wish it had been submitted as separate requests for each incremental patch (or even each logical group of them), just as something to keep in mind for the future.

IreneKnapp added a commit that referenced this pull request Aug 16, 2012
Improve internal type safety, and import GHCi fix from persistent-sqlite.  It is my great pleasure to merge this; I was able to read through it a lot faster than I expected when I saw the list of patches being so long.  Thanks for breaking them up nicely, it made it a lot easier to understand the purpose of things.
@IreneKnapp IreneKnapp merged commit 84efb91 into IreneKnapp:master Aug 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants