TCache-0.12.1: A Transactional cache with user-defined persistence

Safe HaskellNone
LanguageHaskell98

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

data IDynType Source #

Constructors

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

newtype Save Source #

Constructors

Save ByteString 

Instances

Serialize Save Source # 

Methods

showp :: Save -> STW () #

readp :: STR Save #

errorfied :: [Char] -> [Char] -> a Source #

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 #