úÎM¡H^(      !"#$%&'#Extract a field as a value of type a. If the field does not # exist or cannot be parsed as type a, fail. (4 when the field is defined and is true. Otherwise, ). BA computation that interacts with a CouchDB database. This monad  encapsulates the *, monad, a persistent HTTP connnection to a C CouchDB database and enough information to re-open the connection  if it is closed. +<Describes a connection to a CouchDB database. This type is  encapsulated by . ,-./01path 234DSend a request to the database. If the connection is closed, it is C reopened and the request is resent. On other errors, we raise an  exception. path of the request dictionary of GET parameters body of the request  hostname port 2Connects to the CouchDB server at localhost:5984. ?Run a CouchDB computation with an existing CouchDB connection. 9Create a CouchDB connection for use with runCouchDBWith.  hostname port "Closes an open CouchDB connection 56789:;<=>?@ABCD4 4  EFGHECreates a new database. Throws an exception if the database already  exists. I%False if the database does not exist Jdatabase name document name document body Returns K on a conflict. Returns L with the  revision number on success. M database document and revision  new value NHDelete a doc by document identifier (revision number not needed). This N operation first retreives the document to get its revision number. It fails  if the document doesn' t exist or there is a conflict.  database document identifier O database document and revision Pdatabase name document body id and rev of new document Qdatabase name document name R if the  doc does not exist S?Gets a document as a raw JSON value. Returns the document id,  revision and value as a TU$. These fields are queried lazily, B and may fail later if the response from the server is malformed. database name document name R! if the document does not exist. VDGets a document as a Maybe String. Returns the raw result of what > couchdb returns. Returns Nothing if the doc does not exist. W database document name update function If the update succeeds,  return the revision number  of the result. XYdatabase name Z[database name view set name views \]databse query parameters : |Returns a list of rows. Each row is a key, value pair. ^_ database design view query parameters : |Returns a list of rows. Each row is a key, value pair. `Like _4, but only returns the keys. Use this for key-only . views where the value is completely ignored.  database design view query parameters a HIJMNOPQSVWY[]_` HIJMNOPQSVWY[]_`Document name bcDocument revision number. deDatabase name f?Returns a safe database name. Signals an error if the name is  invalid. Returns a Rev ?Returns a safe document name. Signals an error if the name is  invalid. ECreates a new database. Throws an exception if the database already  exists. %False if the database does not exist database name document name document body Returns K on a conflict.  database document and revision  new value HDelete a doc by document identifier (revision number not needed). This N operation first retreives the document to get its revision number. It fails  if the document doesn' t exist or there is a conflict.  database document identifier  database database name document body id and rev of new document database name document name R if the  doc does not exist query parameters !?Gets a document as a raw JSON value. Returns the document id,  revision and value as a TU$. These fields are queried lazily, B and may fail later if the response from the server is malformed. database name document name R! if the document does not exist. "# database document name update function If the update succeeds,  return the revision number  of the result. $database name %database name view set name views & database design view query parameters : |Returns a list of rows. Each row is a key, value pair. 'Like &4, but only returns the keys. Use this for key-only . views where the value is completely ignored.  database design view query parameters "  !"#$%&'"  !" #$ %&' !"#$%&'g      !"#$%&'()*+,-./-.0-12  3456789:;<=;<>;<?;<@;<A;<B;<C;<D;<E;<F;<G;<H;<I;<J;<K;<KLMNOPQOPR !"#$OST&UVWUVW'(X)Y*Z%[+,\]^_CouchDB-0.10.1Database.CouchDB.JSONDatabase.CouchDBDatabase.CouchDB.HTTPDatabase.CouchDB.Unsafe jsonStringjsonInt jsonObjectjsonBool jsonField jsonIsTrue CouchMonad CouchConn runCouchDB runCouchDB'runCouchDBWithcreateCouchConncloseCouchConn CouchView ViewMapReduceViewMapDocRevDB isDBStringdbrevdoc isDocStringcreateDBdropDB newNamedDoc updateDocforceDeleteDoc deleteDocnewDocgetDoc getAllDocs getDocPrim getDocRawgetAndUpdateDoc getAllDocIdsnewView queryView queryViewKeysghc-primGHC.BoolTrueFalse GHC.TypesIOccConnccURI ccHostnameccPortmakeURLgetConnreopenConnectionrequest HTTP-4000.1.0Network.HTTP.BaseHEADPUTGETPOSTDELETEOPTIONSTRACECONNECTCustom RequestMethodrspBody rspHeaders rspReasonrspCodeResponseassertJSObject couchResponserequest'base Data.EitherLeftRight Data.MaybeNothing json-0.4.4Text.JSON.TypesJSObject allDocRowcouchViewToJSONtoRowtoRowDocrowKeyunDocunRev