Abdulsattar Mohammed
Abdulsattar Mohammed

Reputation: 10742

MongoDB Haskell ORM

I've been looking for an ORM that uses Haskell records to store into a MongoDB database.

HaskellWiki has a list of some libraries which are not necessarily ORMs.

Persistent is the one that comes closest to what I need, but it depends heavily on Template Haskell, which I do not want. I just want plain Haskell records to be mapped to the database.

Upvotes: 3

Views: 840

Answers (1)

Michael Snoyman
Michael Snoyman

Reputation: 31335

You can use Persistent without Template Haskell, you just need to define your PersistEntity instances manually. Some people are doing this currently for cases where TH isn't available (e.g., ghc-iphone).

Upvotes: 6

Related Questions