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

Safe HaskellNone

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.

Documentation

data IDynType Source

Constructors

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

Instances

newtype Save Source

Constructors

Save ByteString 

errorfied :: [Char] -> [Char] -> tSource

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