Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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
- data TypeableDict a where
- TypeableDict :: Typeable a => TypeableDict a
Documentation
class (Binary a, Typeable a) => Serializable a Source
Objects that can be sent across the network
(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 :: *
Eq Fingerprint | |
Ord Fingerprint | |
Show Fingerprint | |
Storable Fingerprint | |
NFData Fingerprint | Since: 1.4.0.0 |
showFingerprint :: Fingerprint -> ShowS Source
Show fingerprint (for debugging purposes)
data SerializableDict a where Source
Reification of Serializable
(see Control.Distributed.Process.Closure)
SerializableDict :: Serializable a => SerializableDict a |
data TypeableDict a where Source
Reification of Typeable
.
TypeableDict :: Typeable a => TypeableDict a |