Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 877
Abdulsattar Mohammed Avatar asked Aug 19 '26 21:08

Abdulsattar Mohammed


1 Answers

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

like image 61
Michael Snoyman Avatar answered Aug 24 '26 01:08

Michael Snoyman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!