riak-1.1.2.0: A Haskell client for the Riak decentralized data store

Copyright(c) 2011 MailRank Inc.
LicenseApache
MaintainerMark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Network.Riak.Content

Contents

Description

Low-level content and link types and functions.

Synopsis

Types

data Content :: * #

Instances

Eq Content 

Methods

(==) :: Content -> Content -> Bool #

(/=) :: Content -> Content -> Bool #

Data Content 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Content -> c Content #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Content #

toConstr :: Content -> Constr #

dataTypeOf :: Content -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Content) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Content) #

gmapT :: (forall b. Data b => b -> b) -> Content -> Content #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Content -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Content -> r #

gmapQ :: (forall d. Data d => d -> u) -> Content -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Content -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Content -> m Content #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Content -> m Content #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Content -> m Content #

Ord Content 
Show Content 
GPB Content 
Wire Content 
TextMsg Content 

Methods

textPut :: Content -> Output #

textGet :: Stream s Identity Char => Parsec s () Content #

TextType Content 

Methods

tellT :: String -> Content -> Output #

getT :: Stream s Identity Char => String -> Parsec s () Content #

ReflectDescriptor Content 
Mergeable Content 
Default Content 
IsContent Content Source # 
MessageAPI msg' (msg' -> Content) Content 

Methods

getVal :: msg' -> (msg' -> Content) -> Content #

isSet :: msg' -> (msg' -> Content) -> Bool #

data Link :: * #

Constructors

Link 

Functions

empty :: Content Source #

An empty piece of content.

binary :: ByteString -> Content Source #

Content encoded as application/octet-stream.

json :: ToJSON a => a -> Content Source #

Content encoded as application/json.

link :: Bucket -> Key -> Tag -> Link Source #

Create a link.