TCache-0.13.3: A Transactional cache with user-defined persistence
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Persistent.IDynamic

Description

IDynamic is a indexable and serializable version of Dynamic. (See Data.Dynamic). It is used as containers of objects in the cache so any new datatype can be incrementally stored without recompilation. IDimamic provices methods for safe casting, besides serializaton, deserialirezation and retrieval by key.

Synopsis

Documentation

newtype IDynamic Source #

Constructors

IDyn (IORef IDynType) 

Instances

Instances details
Serialize IDynamic Source # 
Instance details

Defined in Data.Persistent.IDynamic

Methods

showp :: IDynamic -> STW () #

readp :: STR IDynamic #

Show IDynamic Source # 
Instance details

Defined in Data.Persistent.IDynamic

data IDynType Source #

Constructors

forall a.(Typeable a, Serialize a) => DRight !a 
DLeft !(ByteString, (Context, ByteString)) 

newtype Save Source #

Constructors

Save ByteString 

Instances

Instances details
Serialize Save Source # 
Instance details

Defined in Data.Persistent.IDynamic

Methods

showp :: Save -> STW () #

readp :: STR Save #

serializedEqual :: IDynamic -> ByteString -> Bool Source #

check if a (possibly polimorphic) value within a IDynamic value has the given serialization"

reifyM :: (Typeable a, Serialize a) => IDynamic -> a -> IO a Source #