Safe Haskell | None |
---|
- class (Binary a, Typeable a) => Serializable a
- encodeFingerprint :: Fingerprint -> ByteString
- decodeFingerprint :: ByteString -> Fingerprint
- fingerprint :: Typeable a => a -> Fingerprint
- sizeOfFingerprint :: Int
- data Fingerprint
- showFingerprint :: Fingerprint -> ShowS
- data SerializableDict a where
- SerializableDict :: Serializable a => SerializableDict a
Documentation
class (Binary a, Typeable a) => Serializable a Source
Objects that can be sent across the network
(Binary a, Typeable a) => Serializable a |
encodeFingerprint :: Fingerprint -> ByteStringSource
Encode type representation as a bytestring
decodeFingerprint :: ByteString -> FingerprintSource
Decode a bytestring into a fingerprint. Throws an IO exception on failure
fingerprint :: Typeable a => a -> FingerprintSource
The fingerprint of the typeRep of the argument
sizeOfFingerprint :: IntSource
Size of a fingerprint
showFingerprint :: Fingerprint -> ShowSSource
Show fingerprint (for debugging purposes)
data SerializableDict a whereSource
Reification of Serializable
(see Control.Distributed.Process.Closure)
SerializableDict :: Serializable a => SerializableDict a |