mongoDB-0.9.3: MongoDB driver



Miscellaneous general functions and Show, Eq, and Ord instances for PortID



bitOr :: Bits a => [a] -> aSource

bit-or all numbers together

(<.>) :: UString -> UString -> UStringSource

Concat first and second together with period in between. Eg. "hello" <.> "world" = ""

true1 :: Label -> Document -> BoolSource

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.

hGetN :: Handle -> Int -> IO ByteStringSource

Read N bytes from hande, blocking until all N bytes are read. If EOF is reached before N bytes then raise EOF exception.