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

Portabilityportable
Stabilityexperimental
MaintainerBryan O'Sullivan <bos@mailrank.com>

Network.Riak.JSON

Description

This module allows storage and retrieval of JSON-encoded data.

The functions in this module do not perform any conflict resolution.

Synopsis

Documentation

data JSON a Source

Instances

Functor JSON 
Typeable1 JSON 
Bounded a => Bounded (JSON a) 
Eq a => Eq (JSON a) 
Ord a => Ord (JSON a) 
Read a => Read (JSON a) 
Show a => Show (JSON a) 
Monoid a => Monoid (JSON a) 
(FromJSON a, ToJSON a) => IsContent (JSON a) 

json :: (FromJSON a, ToJSON a) => a -> JSON aSource

Wrap up a value so that it will be encoded and decoded as JSON when converted to/from Content.

plain :: JSON a -> aSource

Unwrap a JSON-wrapped value.

get :: (FromJSON c, ToJSON c) => Connection -> Bucket -> Key -> R -> IO (Maybe ([c], VClock))Source

getMany :: (FromJSON c, ToJSON c) => Connection -> Bucket -> [Key] -> R -> IO [Maybe ([c], VClock)]Source

put :: (FromJSON c, ToJSON c) => Connection -> Bucket -> Key -> Maybe VClock -> c -> W -> DW -> IO ([c], VClock)Source

put_ :: (FromJSON c, ToJSON c) => Connection -> Bucket -> Key -> Maybe VClock -> c -> W -> DW -> IO ()Source

putMany :: (FromJSON c, ToJSON c) => Connection -> Bucket -> [(Key, Maybe VClock, c)] -> W -> DW -> IO [([c], VClock)]Source

putMany_ :: (FromJSON c, ToJSON c) => Connection -> Bucket -> [(Key, Maybe VClock, c)] -> W -> DW -> IO ()Source