Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Serializable a = (Binary a, Typeable a)
- encodeFingerprint :: Fingerprint -> ByteString
- decodeFingerprint :: ByteString -> Fingerprint
- fingerprint :: Typeable a => a -> Fingerprint
- sizeOfFingerprint :: Int
- data Fingerprint
- showFingerprint :: Fingerprint -> ShowS
- data SerializableDict a where
- SerializableDict :: forall a. Serializable a => SerializableDict a
- data TypeableDict a where
- TypeableDict :: forall a. Typeable a => TypeableDict a
Documentation
type Serializable a = (Binary a, Typeable a) Source #
Objects that can be sent across the network
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
showFingerprint :: Fingerprint -> ShowS Source #
Show fingerprint (for debugging purposes)
data SerializableDict a where Source #
Reification of Serializable
(see Control.Distributed.Process.Closure)
SerializableDict :: forall a. Serializable a => SerializableDict a |
data TypeableDict a where Source #
Reification of Typeable
.
TypeableDict :: forall a. Typeable a => TypeableDict a |