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

Safe HaskellNone
LanguageHaskell98

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 -> ByteString Source #

Encode type representation as a bytestring

decodeFingerprint :: ByteString -> Fingerprint Source #

Decode a bytestring into a fingerprint. Throws an IO exception on failure

fingerprint :: Typeable a => a -> Fingerprint Source #

The fingerprint of the typeRep of the argument

sizeOfFingerprint :: Int Source #

Size of a fingerprint

showFingerprint :: Fingerprint -> ShowS Source #

Show fingerprint (for debugging purposes)

data TypeableDict a where Source #

Reification of Typeable.

Constructors

TypeableDict :: Typeable a => TypeableDict a