HAppS-Data-0.9.2: HAppS data manipulation librariesContentsIndex
HAppS.Data.Serialize
Documentation
class (Typeable a, Version a) => Serialize a where
Methods
getCopy :: Contained (Get a)
putCopy :: a -> Contained Put
show/hide Instances
class Version a where
Methods
mode :: Mode a
show/hide Instances
class Migrate a b where
Methods
migrate :: a -> b
data Mode a
Constructors
PrimitiveData layout won't change. Used for types like Int and Char.
Versioned VersionId a Maybe (Previous a)
data Contained a
contain :: a -> Contained a
extension :: forall a b. (Serialize b, Migrate b a) => VersionId a -> Proxy b -> Mode a
safeGet :: forall a. Serialize a => Get a
safePut :: forall a. Serialize a => a -> Put
serialize :: Serialize a => a -> ByteString
deserialize :: Serialize a => ByteString -> (a, ByteString)
data Object
show/hide Instances
mkObject :: Serialize a => a -> Object
deserializeObject :: ByteString -> (Object, ByteString)
parseObject :: Serialize a => Object -> a
module HAppS.Data.Proxy
Produced by Haddock version 2.1.0