selectel / mongoDB-haskell

MongoDB driver for Haskell
http://hackage.haskell.org/package/mongoDB
Apache License 2.0
21 stars 11 forks source link

Add 'new' parameter to findAndModify #24

Closed spl closed 6 years ago

spl commented 10 years ago

The main object of this pull request is to lift the new parameter findAndModify to the Haskell function interface. I currently need it to retrieve the original document instead of the updated document.

Note that this changes the library API, so if you follow the PVP, this update alone would require a major version number bump.

spl commented 10 years ago

Actually, it turns out that I don't need this myself. But you can decide whether it's worth the update. It may be something you want to sit on until you have other changes.