rethinkdb-1.15.2.0: A driver for RethinkDB 1.15

Safe HaskellNone
LanguageHaskell98

Database.RethinkDB.Datum

Synopsis

Documentation

parse :: (a -> Parser b) -> a -> Result b

data Result a :: * -> *

Constructors

Error String 
Success a 

class ToDatum a where Source

Minimal complete definition

Nothing

Methods

toDatum :: a -> Datum Source

data LonLat Source

Constructors

LonLat 

Instances

Eq LonLat 
Ord LonLat 
Show LonLat 
ToJSON LonLat 
FromJSON LonLat 

type Array = Vector Datum Source

type Object = HashMap Text Datum Source

type Line = Vector LonLat Source

type Polygon = Vector (Vector LonLat) Source

(.=) :: ToDatum a => Text -> a -> (Text, Datum) Source

(.:) :: FromDatum a => HashMap Text Datum -> Text -> Parser a Source

(.:?) :: FromDatum a => HashMap Text Datum -> Text -> Parser (Maybe a) Source

object :: [(Text, Datum)] -> Datum Source