distributed-process-0.4.0.2: Cloud Haskell: Erlang-style concurrency in Haskell

Safe HaskellNone

Control.Distributed.Process.Serializable

Synopsis

Documentation

class (Binary a, Typeable a) => Serializable a Source

Objects that can be sent across the network

Instances

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)