Commit graph

498 commits

Author SHA1 Message Date
Edward Z. Yang
4ce8a44011 Fix some warnings.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2013-11-06 23:15:50 -08:00
Edward Z. Yang
5656f90c27 Convert to use hashtables, as Data.HashTable went away.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2013-11-06 23:04:16 -08:00
Fedor Gogolev
6b37a429d4 Merge pull request #15 from gregwebs/fix-findAndModify
handle findAndModify edge cases
2013-09-02 09:13:12 -07:00
Greg Weber
57722a7d43 handle findAndModify edge cases
also give better error messages
2013-08-29 11:57:07 -07:00
Fedor Gogolev
dda18bf8d1
Version bump 2013-06-20 12:03:11 +04:00
Fedor Gogolev
33e9bcf67d Merge pull request #12 from gregwebs/findAndModify
add findAndModify command
2013-06-19 05:22:24 -07:00
Greg Weber
45a0e8e9e2 add findAndModify command 2013-06-06 08:00:00 -07:00
Fedor Gogolev
5a6e8842bd
Bumped version 2013-06-04 00:10:13 +04:00
Fedor Gogolev
06dad66ce0 Merge pull request #10 from tvh/master
Add Support for Aggregate Framework
2013-05-23 15:19:24 -07:00
Timo von Holtz
83cae75efc Added Support for Aggregate Framework 2013-05-24 00:15:56 +02:00
Fedor Gogolev
46b3f1f3fa Support for network 2.4.1 2013-01-21 02:08:20 +04:00
Fedor Gogolev
96c876979c Bumped version 2012-10-25 14:31:44 +04:00
Fedor Gogolev
62ae52ecd2 Merge pull request #5 from alevy/ghc76
GHC 7.6 Support
2012-10-25 02:27:06 -07:00
Amit Aryeh Levy
5ce857a4db Make sure 7.6 modifications stil compile with 7.4 2012-10-23 16:49:29 -04:00
Amit Aryeh Levy
ed0c264a35 GHC 7.6 Support
lifted-base no longer contains addMVarFinalizer
2012-10-19 02:29:10 -07:00
Sergei Lebedev
bbe6138fea Merge pull request #4 from snoyberg/master
GHC 7.6 support
2012-09-11 09:45:00 -07:00
Michael Snoyman
681f9f875f GHC 7.6 support 2012-09-10 20:25:45 +03:00
Fedor Gogolev
4ae4f793e3 Function eval returns Val v instead of Document
Fixes #1
2012-07-09 08:26:58 +04:00
Fedor Gogolev
a6ecd104f7 Updated homepage 2012-06-11 00:28:27 +04:00
Fedor Gogolev
a0f0f04d8b Updated maintainer field 2012-06-11 00:27:27 +04:00
Fedor Gogolev
b11c01fc00 Specified required bson version to 0.2.* 2012-06-11 00:26:56 +04:00
Fedor Gogolev
8a02b8056e Improved cabal-file readability 2012-06-11 00:26:36 +04:00
Fedor Gogolev
dd6a3010f6 Cleaned up imports 2012-06-10 23:47:14 +04:00
Fedor Gogolev
17f528e835 Use text instead of compact-string-fix 2012-05-08 19:13:25 +04:00
Tony Hannan
3f3cd028da Merge pull request #20 from yesodweb/fno-warn-orphans
Fno warn orphans
2012-02-29 12:06:47 -08:00
Greg Weber
3c77f29e83 ignore dist/ 2012-02-29 11:36:14 -08:00
Greg Weber
b706780844 use -fno-warn-orphans 2012-02-29 11:35:55 -08:00
Tony Hannan
a618ebbf95 Merge pull request #16 from A1kmm/master
Add routedHost as an alternative to primary / secondaryOk that lets the user supply their own sort function
2012-02-20 08:10:33 -08:00
Andrew Miller
d3f54922cc Add routedHost as an alternative to primary / secondaryOk that lets the user supply their own sort function. This is useful for applications like preferentially connecting to the host or secondary that is geographically the closest. 2012-02-12 17:34:07 +13:00
Tony Hannan
5e015dc769 Merge pull request #14 from yesodweb/show-AccessMode
show instance for AccessMode
2012-01-28 15:50:53 -08:00
Greg Weber
6ef19663cf show instance for AccessMode 2012-01-27 12:48:54 -03:00
Tony Hannan
2f23e78c28 Use MVar from lifted-base 2012-01-23 20:45:10 -05:00
Tony Hannan
d0aeb42e7c merge duplicate code 2012-01-23 19:45:42 -05:00
Tony Hannan
b8f25ad6f0 bump version for latest lifted-base 2012-01-23 19:14:36 -05:00
Tony Hannan
5c2a296fa1 Merge pull request #12 from mkscrg/master
Fix for tailable cursor
2012-01-23 16:11:43 -08:00
Michael S. Craig
fa95b65fad Fix for bad behavior when using TailableCursor.
`Database.MongoDB.Query.next` and `nextBatch` prefetch a promise of the next
batch of documents from the server whenever the current batch has been
exhausted. The following call to `next` or `nextBatch` fulfills that promise
(thereby turning it into a concrete batch of documents) and then returns one or
more documents in the batch.

The old behavior was to raise an exception if an empty batch with a nonzero
cursor ID was encountered. This is normal when using tailable cursors, so a
change was required.

Now, `Nothing` is returned with the still-live cursor ID, instead of raising
the exception. Also, prefetched empty batches with nonzero cursor IDs are
refetched once per call to avoid stale data.

This new prefetching behavior does not affect the performance of `next`, except
when calling it repeatedly on a tailable cursor with no new data. In those
(generally avoidable) cases, each call to `next` results in two server calls
instead of one.
2011-12-13 11:02:57 -05:00
Tony Hannan
6faad5d866 Merge pull request #9 from alphaHeavy/monad-control
Updating to monad-control-0.3, with help from Bas van Dijk.
2011-12-06 15:17:06 -08:00
Nathan Howell
b18f81f431 Updating to monad-control-0.3, with help from Bas van Dijk.
Conflicts:

	Database/MongoDB/Query.hs
2011-12-05 09:23:39 -08:00
Tony Hannan
d506011cd1 fix some warnings. bump version for previous 7.2.1 compatibility fix 2011-11-10 10:23:07 -05:00
Tony Hannan
9dae52a374 Merge pull request #7 from ryantrinkle/master
Fixed brokenness in 7.2.1 (field labels for RecordWildCards must be in scope)
2011-10-28 08:50:18 -07:00
Ryan Trinkle
ccd217053b fix missing record field in P.Request value
the fields of a Database.MongoDB.Internal.Protocol.Query were not filled in by RecordWildcard on line 411 of Database/MongoDB/Query.hs because the record fields were not in scope
2011-10-27 15:24:37 -04:00
Tony Hannan
889aaba0f8 fix typo in article 2011-09-12 10:46:24 -04:00
Tony Hannan
bc3866b79c new version using MonadControlIO instead of custom MonadMVar 2011-09-08 18:56:38 -04:00
Tony Hannan
747fd0ae87 fix typo in previous merge 2011-09-07 23:51:57 -04:00
Tony Hannan
efb6b65506 QueryFailure error code 2011-09-07 12:09:20 -04:00
Tony Hannan
81c4f95d5a Merge pull request #4 from yesodweb/master
Use MonadControlIO instead of custom MonadMVar
2011-09-07 09:07:07 -07:00
Michael Snoyman
a320c363e4 Move to monad-control 2011-08-25 16:29:39 +03:00
Tony Hannan
4307fea5aa collect ids from insert lazily in case not used 2011-08-18 19:41:32 -04:00
Tony Hannan
35801ef052 small edit to slides 2011-07-30 13:12:12 -04:00
Tony Hannan
e152f5b69b use ExtendedDefaultRules in example 2011-07-30 12:49:37 -04:00