ٽ.;      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJK L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                                    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : bit-or all numbers together =Concat first and second together with period in between. Eg. "hello" <.> "world" = " hello.world" Is field's value a 1 or True (MongoDB use both Int and Bools for truth values). Error if field not in document or field not a Num or Bool. yRead N bytes from hande, blocking until all N bytes are read. If EOF is reached before N bytes then raise EOF exception.     8MonadIO with extra Applicative and Functor superclasses GRepeatedy execute action, collecting results, until it returns Nothing eApply action to elements one at a time until one returns Just. Return Nothing if all return Nothing. _Apply action to elements one at a time until one succeeds. Throw last error if all fail. Throw ; error if list is empty. |Apply action to elements one at a time until one succeeds. Throw last error if all fail. Throw given error if list is empty Convert error type thrown    Same as <c but without functional dependency so the same monad can have multiple errors with different types 4Abort action and throw give exception. Analogous to =. OIf first action aborts with exception then execute second action. Analogous to > XExecute action and throw exception if result is Left, otherwise return the Right result `Execute action and throw transformed exception if result is Left, otherwise return Right result IIf first action throws an exception then run second action then re-throw Convert error type  !"#$% !"#$% !"#$% !"#$%&cPool of maximum N resources. Resources may expire on their own or be killed. Resources will initially be created on demand up N resources then recycled in random fashion. N may be changed by resizing the pool. Random is preferred to round-robin to distribute effect of pathological use cases that use every Xth resource the most and N is a multiple of X.  Resources *must* close/(kill themselves when garbage collected (2 relies on this). '()*[Creator, destroyer, and checker of resources of type r. Creator may throw error or type e. +,-./8Create new pool of initial max size, which must be >= 1 0VReturn a random live resource in pool or create new one if expired or not yet created 1current max size of pool 2resize max size of pool. When shrinking some resource will be dropped without closing since they may still be in use. They are expected to close themselves when garbage collected. 3AKill all resources in pool so subsequent access creates new ones &'()*+,-./0123*+,-./&'()0123&'()'()*+,-.+,-./01234Same as ?e but without functional dependency so the same monad can have multiple contexts with different types 5:Get the context in the Reader in the monad stack that has x context type. Analogous to @. 6;Push new context in the Reader in the monad stack that has x context type. Analogous to A 456456456567893Normal Network instance, i.e. no logging or replay :;<=>?@ABiA network controls connections to other hosts. It may want to overide to log messages or play them back. CRConnect to Server returning the send sink and receive source, throw IOError if can' t connect. D Deserialize message from handle EFSerialize message over handle GHEA server receives messages of type i and returns messages of type o. IJ0Be explicit about exception that may be raised. BrConnect to server. Write messages and receive replies. Not thread-safe, must be wrapped in Pipeline or something. 789:;<=>?@ABCDEFGHIJJHIFGDEBC=>?@A;<9:787889::;<<=>?@A>?@ABCCDEEFGGHIIJ K%Thread-safe and pipelined connection CD>Mutex on handle, so only one thread at a time can write to it EvQueue of threads waiting for responses. Every time a response arrive we pop the next thread and give it the response. FL4Create new Pipeline on given connection. You should M pipeline when finished, which will also close connection. If pipeline is not closed but eventually garbage collected, it will be closed along with connection. MN%Close pipe and underlying connection GAListen for responses and supply them to waiting threads in order OQSend message to destination; the destination must not response (otherwise future P2s will get these responses instead of their own). 0 Throw IOError and close pipeline if send fails P'Send message to destination and return promise of response from one message only. The destination must reply to the message (otherwise promises will have the wrong responses in them). R Throw IOError and closes pipeline if send fails, likewise for promised response. KLMNOPKLOPMNKLMNOP OQRSTU`For backward compatability: Set when the server supports the AwaitData query option. if it doesn'?t, a replica slave client should sleep a little between getMore's V6Query error. Returned with one document containing an $err" field holding the error message. WeSet when getMore is called but the cursor id is not valid at the server. Returned with zero results. X/A reply is a message received in response to a c YZ[0 = cursor finished \]^_Use with TailableCursor. If we are at the end of the data, block for a while rather than returning no data. After a timeout period, we do return as normal. = | Exhaust -- ^ Stream the data down full blast in multiple more packages, on the assumption that the client will fully read all data queried. Faster when you are pulling a lot of data and know you want to pull it all down. Note: the client is not allowed to not read all the data unless it closes the connection. `aRAllow query of replica slave. Normally these return an error except for namespace local. bnTailable means cursor is not closed when the last data is retrieved. Rather, the cursor marks the final object'ss position. You can resume using the cursor later, from where it was located, if more data were received. Like any  latent cursor, the cursor may become invalid at some point  for example if the final object it references were deleted. Thus, you should be prepared to requery on CursorNotFound exception. c+A request is a message that is sent with a YX returned defghijk-Number of initial matching documents to skip lThe number of document to return in each batch response from the server. 0 means use Mongo default. Negative means close cursor after first batch and use absolute value as batch size. m[]& = return all documents in collection n[] = return whole document opqIf set, the database will remove only the first matching document in the collection. Otherwise all matching documents will be removed rssIf set, the database will update all matching objects in the collection. Otherwise only updates first matching doc tjIf set, the database will insert the supplied object into the collection if no matching document is found u1A notice is a message that is sent with no reply vwxyz{|}~HI2A fresh request id is generated for every message JBDatabase name and collection name with period (.) in between. Eg. "myDb.myCollection" K>Message received from a Mongo server in response to a Request LUA write notice(s), write notice(s) with getLastError request, or just query request.  Note, that requestId will be out of order because request ids will be generated for notices after the request id supplied was generated. This is ok because the mongo server does not care about order just uniqueness. 3Thread-safe TCP connection with pipelined requests _Send notices as a contiguous batch to server with no reply. Throw IOError if connection fails. Send notices and request as a contiguous batch to server and return reply promise, which will block when invoked until reply arrives. This call and resulting promise will throw IOError if connection fails. MGenerate fresh request id NPNote, does not write message length (first int32), assumes caller will write it ONNote, does not read message length (first int32), assumes it was already read PQRSTUVWXYZ[\]9QRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~9u|xv}~yz{wrtspqochdijklmnefg^ba`_XYZ[\]TWVUSRQ9QRSTWVUUVWXYZ[\]YZ[\]^ba`__`abc hdijklmnefgdefghijklmnopqqrtsstu|xv}~yz{wvwxyz{|}~$Replica set of hosts identified by set name. At least one of the seed hosts must be an active member of the set. However, this list is not used to identify the set, just the set name. ^9Configuration info of a host in a replica set (result of ismasterk command). Contains all the hosts in the replica set plus its role in that set (master, slave, or arbiter) connect to master only 4connect to a slave, or master if no slave available _Kill all open pipes (TCP Connections). Will cause any users of them to fail. Alternatively you can let them die on their own when they get garbage collected. *Return a TCP connection (Pipe) to the master or a slave in the server. Master must connect to the master, SlaveOk may connect to a slave or master. To spread the load, SlaveOk requests are distributed amongst all hosts in the server. Throw IOError if failed to connect to right type of host (Master/ SlaveOk). jCreate a ConnectionPool to a host or a replica set of hosts. Actual TCP connection is not attempted until f request, so no IOError can be raised here. Up to N TCP connections will be established to each host. A pool of TCP connections ('s) to a host or a replica set of hosts A Service is a single server () or a replica set of servers () `Convert command to request aeExtract first document from reply. Error if query error, using given string as prefix error message. bHost on default MongoDB port Display host as " host:port" / TODO: Distinguish Service and UnixSocket port  Read string " hostname:port" as Host hosthame port or "hostname" as  host hostname> (default port). Fail if string does not match either syntax. * TODO: handle Service and UnixSocket port  Read string " hostname:port" as Host hostname port or "hostname" as  host hostname? (default port). Error if string does not match either syntax. csGet replica info of the connected host. Throw IOError if connection fails or host is not part of a replica set (no hosts and primary field). dBAll replicas in set according to this replica configuration info. e%Read primary from configuration info freplicas with primary at head gCreate a pool of N s (TCP connections) to server. h4 will return one of those pipes, round-robin style. h]Return next pipe (TCP connection) in connection pool, round-robin style. Throw IOError if can't connect to host. iFCreate a TCP connection (Pipe) to the given host. Throw IOError if can' t connect. ;Return replicas set name with current members as seed list j<Create a connection pool to each member of the replica set. kYGet members of replica set, master first. Query supplied connections until config found.  TODO: Verify config for request replica set name and not some other replica set. ismaster config should include replica set name in result but currently does not. lYUpdate current members with master at head. Reuse unchanged members. Throw IOError if can't connect to any and fetch config. Dropped connections are not closed in case they still have users; they will be closed when garbage collected. mReturn a pipe to primary or a random secondary in replica set. Use primary for SlaveOk if and only if no secondaries. Note, refreshes members each time (makes ismaster call to primary).  AA command is a special query or action against the database. See  ,http://www.mongodb.org/display/DOCS/Commands for details. (key, value) -> final_valuep. A finalize function may be run after reduction. Such a function is optional and is not necessary for many map/]reduce cases. The finalize function takes a key and a value, and returns a finalized value.  (key, [value] ) -> value. The reduce function receives a key and an array of values and returns an aggregate result value. The MapReduce engine may invoke reduce functions iteratively; thus, these functions must be idempotent. That is, the following must hold for your reduce function: reduce(k, [reduce(k,vs)]) == reduce(k,vs). If you need to perform an operation only once, use a finalize function. The output of emit (the 2nd param) and reduce should be the same format to make iterative reduce possible.  () -> void+. The map function references the variable thisK to inspect the current object under consideration. The function must call emit(key,value)O at least once, but may be invoked any number of times, as may be appropriate. Maps every document in collection to a list of (key, value) pairs, then for each unique key reduces all its associated values to a single result. There are additional parameters that may be set to tweak this basic operation. 6Operate on only those documents selected. Default is [] meaning all documents.  Default is [] meaning no sort Default is 0 meaning no limit mOutput to given permanent collection, otherwise output to a new temporary collection whose name is returned. If True, the temporary output collection is made permanent. If False, the temporary output collection persists for the life of the current pipe only, however, other pipes may read from it while the original one is still alive. Note, reading from a temporary collection after its original pipe dies returns an empty result (not an error). The default for this attribute is False, unless . is specified, then the collection permanent. HFunction to apply to all the results when finished. Default is Nothing. 5Variables (environment) that can be accessed from mapreducefinalize. Default is []. <Provide statistics on job execution time. Default is False. !Fields to group by, or function ( doc -> key) returning a  key object to be used as the grouping key. Use KeyF instead of Key to specify a key that is not an existing member of the object (or, to access embedded members). KGroups documents in collection by key then reduces (aggregates) each group Fields to group by (doc, agg) -> (). The reduce function reduces (aggregates) the objects iterated. Typical operations of a reduce function include summing and counting. It takes two arguments, the current document being iterated over and the aggregation value, and updates the aggregate value. agg/. Initial aggregation value supplied to reduce 9Condition that must be true for a row to be considered. [] means always true. agg -> () | result. An optional function to be run on each item in the result set just before the item is returned. Can either modify the item (e.g., add an average field given a count and a total) or return a replacement object (returning a new object with just _id and average fields). nCursorId = 0 means cursor is finished. Documents is remaining documents to serve in current batch. Limit is remaining limit for next fetch. op'A promised cursor state which may fail &Iterator over results of a query. Use  to iterate or  to get all results. A cursor is closed when it is explicitly closed, all results have been read from it, garbage collected, or not used for over 10 minutes (unless  option was specified in )). Reading from a closed cursor raises a . Note, a cursor is not closed when the pipe is closed, so you can open another pipe to the same server and continue using the cursor. qdThe number of document to return in each batch response from the server. 0 means use Mongo default. <Fields to sort by. Each one is associated with 1 or -1. Eg. [x =: 1, y =: -1] means sort by x ascending then y descending Maximum number of documents to return, i.e. cursor will close after iterating over this number of documents. 0 means no limit. 9Fields to return, analogous to the select clause in SQL. []6 means return whole document (analogous to * in SQL). [x =: 1, y =: 1] means return only x and y fields of each document. [x =: 0] means return all fields except x. Use with TailableCursor. If we are at the end of the data, block for a while rather than returning no data. After a timeout period, we do return as normal. nTailable means cursor is not closed when the last data is retrieved. Rather, the cursor marks the final object'ss position. You can resume using the cursor later, from where it was located, if more data were received. Like any  latent cursor, the cursor may become invalid at some point  for example if the final object it references were deleted. Thus, you should be prepared to requery on CursorNotFound exception. Use M to create a basic query with defaults, then modify if desired. For example, (select sel col) {limit = 10}  Default = [] [] = all fields. Default = [] :Number of initial matching documents to skip. Default = 0 AMaximum number of documents to return, 0 = no limit. Default = 0 Sort results by this order, [] = no sort. Default = [] xIf true assures no duplicates are returned, or objects missed, which were present at both the start and end of the query's execution (even if the object were updated). If an object is new during the query, or deleted during the query, it may or may not be returned, even with snapshot mode. Note that short query responses (less than 1MB) are always effectively snapshotted. Default = False pThe number of document to return in each batch response from the server. 0 means use Mongo default. Default = 0 "Force MongoDB to use this index, [] = no hint. Default = [] /Update operations on fields in a document. See  Hhttp://www.mongodb.org/display/DOCS/Updating#Updating-ModifierOperations rError code from getLastError Default write-mode is  Receive an acknowledgment after every write, and raise exception if one says the write failed. This is acomplished by sending the getLastError command, with given  parameters, after every write. hSubmit writes without receiving acknowledgments. Fast. Assumes writes succeed even though they may not.  or n that selects documents in collection that match selector. The choice of type depends on use, for example, in find (select sel col) it is a Query, and in delete (select sel col) it is a Selection. :Filter for a query, analogous to the where clause in SQL. []& matches all documents in collection. [x =: a, y =: b] is analogous to where x = a and y = b in SQL. See  ,http://www.mongodb.org/display/DOCS/Querying for full selector syntax. 4Selects documents in collection that match selector -Collection name (not prefixed with database)  monad with a particular  in context Database name eA connection failure, or a read or write exception like cursor expired or inserting a duplicate key. k Note, unexpected data from the server is not a Failure, rather it is a programming error (you should call sa in this case) because the client and server are incompatible and requires a programming change. MError observed by getLastError after a write, error description is in string 8Query failed for some reason as described in the string Cursor expired because it wasn't accessed for over 10 minutes, or this cursor came from a different server that the one you are currently connected to (perhaps a fail over happen between servers in a replica set) TCP connection (7) failed. Make work if you try again on the same Mongo  Connection which will create a new Pipe. Monad with access to a , , and , and throws a  on read, write or pipe failure tA monad with access to a , , and  , and throws ! on read, write, or pipe failure uRun action under given write and read mode against the server or replicaSet behind given connection pool. Return Left Failure if there is a connection failure or read/ write error. v:Lift IO with Access context and failure into Access monad wxRun action with given write mode and read mode (master or slave-ok) against given pipe (TCP connection). Return Left Failure if read/#write error or connection failure.   calls runAction. Use this directly if you want to use the same connection and not take from the pool again. However, the connection may still be used by other threads at the same time. For instance, the pool will still hand this connection out. &List all databases residing on server "Run action against given database Current database in use Authenticate with the database (if server is running in secure mode). Return whether authentication was successful or not. Reauthentication is required for every new pipe. &List all collections in this database fAdd Javascript predicate to selector, in which case a document must match both selector and predicate Safe [] Run action with given  y+Send write to server, and if write-mode is - then include getLastError request and raise  if it reports an error. zQSend notices (writes) then fetch what the last error was, Nothing means no error /Insert document into collection and return its "_id"7 value, which is created automatically if not supplied Same as  except don' t return _id 2Insert documents into collection and return their "_id"9 values, which are created automatically if not supplied Same as  except don't return _ids {.Assign a unique value to _id field if missing BSave document to collection, meaning insert it if its new (has no "_id") field) or update it if its not new (has "_id" field) 8Replace first document in selection with given document bReplace first document in selection with given document, or insert document if selection is empty 7Update all documents in selection using given modifier |BUpdate first document in selection using updater document, unless s? option is supplied then update all documents in selection. If tX option is supplied then treat updater as document and insert it if selection is empty. "Delete all documents in selection #Delete first document in selection })Delete all documents in selection unless q> option is given then only delete first document in selection hExecute action using given read mode. Master = consistent reads, SlaveOk = eventually consistent reads. ~!Convert to protocol query option Selects documents in collection that match selector. It uses no query options, projects all fields, does not skip any documents, does not limit result size, uses default batch size, does not sort, does not hint, and does not snapshot. BGiven batchSize and limit return P.qBatchSize and remaining limit ]Translate Query to Protocol.Query. If first arg is true then add special $explain attribute. +Send query request and return cursor state !Fetch documents satisfying query USend notices and fetch first document satisfying query or Nothing if none satisfy it DFetch first document satisfying query or Nothing if none satisfy it ,Return performance stats of query execution HFetch number of documents satisfying query (including effect of skip and/or limit if present) 5Fetch distinct values of field in selected documents Extract current cursor status :Send notices and request and return promised cursor state (Convert Reply to CursorState or Failure Create new cursor. If you don't read all results then close it. Cursor will be closed automatically when all results are read from it or when eventually garbage collected. >Return next document in query result, or Nothing if finished. 2Return next N documents or less if end is reached +Return remaining documents in query result 1Translate Group data into expected document form OExecute group query and return resulting aggregate value for each distinct key 5Translate MapReduce data into expected document form MapReduce on collection with given map and reduce functions. Remaining attributes are set to their defaults, which are stated in their comments. 8Run MapReduce and return cursor of results. Error if map/)reduce fails (because of bad Javascript) x TODO: Delete temp result collection when cursor closes. Until then, it will be deleted by the server when pipe closes.  8Run MapReduce and return a result document containing a resultV field holding the output Collection and additional statistic fields. Error if the map/+reduce failed (because of bad Javascript). 4Send notices then run command and return its result  7Run command against the database and return its result   &runCommand1 foo = runCommand [foo =: 1] Run code on server BSend notices as a contiguous batch to server with no reply. Throw  if pipe fails. Send notices and request as a contiguous batch to server and return reply promise, which will block when invoked until reply arrives. This call will throw / if pipe fails on send, and promise will throw  if pipe fails on receive.  is treated the same as s. In other words, don' t use it. pRS    pSR    n      : Cache the indexes we create so repeatedly calling ensureIndex only hits database the first time. Clear cache every once in a while so if someone else deletes index we will recreate it on ensureIndex. Create collection with given options. You only need to call this to set options, otherwise a collection is created automatically on first use with no options. -Rename first collection to second collection Delete the given collection! Return True if collection existed (and was deleted); return False if collection did not exist (and no action). This operation takes a while  iSpec of index of ordered keys on collection. Name is generated from keys. Unique and dropDups are False. !-Create index if we did not already create one. May be called repeatedly with practically no performance hit, because we remember if we already called this for the same index (although this memory gets wiped out every 15 minutes, in case another client drops the index and we want to create it again). "ECreate index on the server. This call goes to the server every time. #Remove the index $#Get all indexes on this collection %$Drop all indexes on this collection Ainitialize cache and fork thread that clears it every 15 minutes %Get index cache for current database 'reset index cache for current database &!Fetch all users of this database 'cAdd user with password with read-only access if bool is True or read-write access if bool is False ()"admin" database *QCopy database from given host to the server I am connected to. Fails and returns ok = 0 if we don'Mt have permission to read from given server (use copyDatabase in this case). +KCopy database from given host to the server I am connected to. If username &8 password is supplied use them to read from given host. ,Delete the given database! -BAttempt to fix any corrupt records. This operation takes a while. ./0123456788See currently running operation on the database, if any 9:.  !"#$%&'()*+,-./0123456789:. !"#$%&'()*+,-./01234567 89:.  !"#$%&'()*+,-./0123456789: RS      !"#$%&'()*+,-./0123456789: !"#$%&'()*#+,-./01234567899:;<<=>?@ABCDEFGHIJJKKLLMNOPQRSTUUV W X O Y M Z [ \ ] ^ _ ` a b b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~       M Z                  g h i k q q                                                       ! " # $ % & ' ( ) * + , - . / 0 1 2 34567867967:6;<6;=6;>? W @ A B C D E F G H I J K L M N O P Q R S T U V W X YZ[\]^_`abcdefghi j k l  mno  p q r s t u v w x y z { | } ~         M Z              mongoDB-0.9.4Control.Monad.MVarDatabase.MongoDB.ConnectionDatabase.MongoDB.Internal.UtilControl.Monad.UtilControl.Monad.ThrowVar.PoolControl.Monad.ContextNetwork.AbstractControl.Pipeline"Database.MongoDB.Internal.ProtocolDatabase.MongoDB.QueryDatabase.MongoDB.AdminDatabase.MongoDBbaseGHC.MVarMVartransformers-0.2.2.0Control.Monad.IO.ClassliftIOnetwork-2.3.0.2NetworkService PortNumber UnixSocketPortIDbitOr<.>true1hGetNMonadIO'loop untilJust untilSuccess untilSuccess'mapErrorwhenJustThrowthrowcatch throwLeft throwLeft' onException MonadMVar modifyMVaraddMVarFinalizer newEmptyMVarnewMVartakeMVarputMVarreadMVarswapMVar tryTakeMVar tryPutMVar isEmptyMVar modifyMVar_withMVarPoolfactory resourcesFactory newResource killResource isExpirednewPool aResourcepoolSizeresizekillAllContextcontextpush NetworkIOnetworkInternetANetwork Connectionsendreceivecloseconnect ReadMessage readMessage WriteMessage writeMessageServerIOEPipeline newPipelineisClosedcallNoncePasswordUsername ResponseFlag AwaitCapable QueryErrorCursorNotFoundReplyrResponseFlags rCursorId rStartingFrom rDocuments QueryOption AwaitDataNoCursorTimeoutSlaveOKTailableCursorRequestGetMoregFullCollection gBatchSize gCursorIdQueryqOptionsqFullCollectionqSkip qBatchSize qSelector qProjectorCursorId DeleteOption SingleRemove UpdateOption MultiUpdateUpsertNotice KillCursors kCursorIdsDeletedFullCollectiondOptions dSelectorUpdateuFullCollectionuOptions uSelectoruUpdaterInsertiFullCollection iDocumentsFullCollectionPipepwHashpwKeyNameHost seedHostssetName ReplicaSetMasterSlaveOkMasterOrSlaveOk killPipesgetPipe newConnPoolConnPoolconnHosthost showHostPort readHostPortM readHostPort replicaSetCommand FinalizeFun ReduceFunMapFun MapReducerCollrMaprReducerSelectrSortrLimitrOut rKeepTemp rFinalizerScoperVerboseGroupKeyKeyFKeyGroupgCollgKeygReducegInitialgCond gFinalizeCursor BatchSizeOrderLimit Projectoroptions selectionprojectskiplimitsortsnapshot batchSizehintModifier GetLastError WriteModeSafeUnsafeSelectselectSelector Selectionselectorcoll CollectionDbAccessDatabase databaseNameFailure WriteFailure QueryFailureCursorNotFoundFailureConnectionFailureActionAccessaccess runAction allDatabasesuse thisDatabaseauthallCollectionswhereJSsafe writeModeinsertinsert_ insertMany insertMany_savereplacerepsertmodifydelete deleteOnereadModefindfindOneexplaincountdistinctnextnextNrest closeCursorisCursorClosedgroup mapReducerunMRrunMR' runCommand runCommand1evalOpNumMilliSecProfilingLevelIndexiColliKeyiNameiUnique iDropDups IndexNameCollectionOptionMaxItems MaxByteSizeCappedcreateCollectionrenameCollectiondropCollectionvalidateCollectionindex ensureIndex createIndex dropIndex getIndexes dropIndexesallUsersaddUser removeUseradmin cloneDatabase copyDatabase dropDatabaserepairDatabaseserverBuildInfo serverVersioncollectionStatsdataSize storageSizetotalIndexSize totalSizegetProfilingLevelsetProfilingLeveldbStats currentOpkillOp serverStatusControl.Monad.Trans.ErrorstrMsg mtl-2.0.1.0Control.Monad.Error.Class MonadError throwError catchErrorControl.Monad.Reader.Class MonadReaderasklocal$fNetworkInternetvConn responseQueue listenThreadlisten ResponseTo RequestIdOpcodeResponseMessage genRequestId putHeader getHeadernOpcode putNoticeuBituBitsdBitdBitsqOpcode putRequestqBitqBits replyOpcodegetReplyrFlagsrBit ReplicaInfoPool' adminCommand commandReply defaultPortgetReplicaInforeplicasprimaryhostsnewHostConnPool getHostPipe tcpConnectnewSetConnPool getMembersrefreshMembers getSetPipe CursorStateCSDelayedCursorState ErrorCodeGHC.Errerror mapErrorIOwrapIO modifyMVar'addMVarFinalizer'write getLastErrorassignIdupdatedelete'msOptionpOptionquerybatchSizeRemainingLimit queryRequestrunQueryfindOne'getCursorStaterequest fromReply newCursor groupDocument mrDocument runCommand'$fErrorFailureGHC.BasefailAllSlowOff IndexCache DbIndexCachecoptElem idxDocumentgenName dbIndexCacheclearDbIndexCachefetchIndexCacheresetIndexCachecompact-string-fix-0.3.1Data.CompactString.UTF8unpack bson-0.1.2 Data.Bson genObjectId timestamp typeOfValtypedcastfval=?=:mergeexcludeincludeatvalueAtlookuplookDocumentvaluelabel:=FieldLabelFloatStringDocArrayBinFunUuidMd5UserDefObjIdBoolUTCNullRegExJavaScrSymInt32Int64StampMinMaxValuecast'valValBinaryFunctionUUIDMD5 UserDefinedRegex JavascriptSymbol MongoStampMinKeyMaxKey MinMaxKeyOidObjectId Data.UStringuUString