Module

Perspectives.Couchdb

#TerminatedURL

type TerminatedURL = String

URL terminated with a forward slash, e.g. http://www.perspectives.nl/.

#User

type User = String

#Password

#DatabaseName

#DBS

newtype DBS

Constructors

Instances

#GetCouchdbAllDocs

newtype GetCouchdbAllDocs

Constructors

Instances

#DocReference

newtype DocReference

Constructors

Instances

#Rev

newtype Rev

Constructors

Instances

#CouchdbStatusCodes

#onAccepted

onAccepted :: forall a m. MonadError Error m => StatusCode -> Array Int -> String -> m a -> m a

Throws an error pertinent to the statuscode if it is not one of the statusCodes that are acceptable. Otherwise evaluates f.

#onAccepted'

onAccepted' :: forall a m. MonadError Error m => CouchdbStatusCodes -> StatusCode -> Array Int -> String -> m a -> m a

#handleError

handleError :: forall a m. MonadError Error m => Int -> CouchdbStatusCodes -> String -> m a

#onCorrectCallAndResponse

#escapeCouchdbDocumentName

Modules