distributed-process-0.6.0: 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

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

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

data Fingerprint :: *

Instances

Eq Fingerprint 
Ord Fingerprint 
Show Fingerprint 
NFData Fingerprint 
Storable Fingerprint 

showFingerprint :: Fingerprint -> ShowS Source

Show fingerprint (for debugging purposes)

data TypeableDict a where Source

Reification of Typeable.

Constructors

TypeableDict :: Typeable a => TypeableDict a